home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Information / THINK C Digest / 1993 / 93-12 < prev   
Text File  |  1995-12-31  |  121KB  |  3,569 lines

  1. 
  2. Path: ucivax!gateway
  3. From: de19@umail.umd.edu (Dana S Emery)
  4. Subject: Re: mac-primer vol 1  menus
  5. Message-ID: <Mailstrom.1.03.33597.9528.de19@umail.umd.edu>
  6. In-Reply-To: Your message <QCFBCA11@ouradnik> of 30 Nov 93 22:33:55 GMT
  7. Content-Type: TEXT/plain; charset=US-ASCII
  8. Newsgroups: fa.think-c
  9. Lines: 43
  10. Date: 1 Dec 93 04:10:03 GMT
  11.  
  12. Mike Ouradnik on miscreant popup menus:
  13.  
  14. >   What I found by chance was that I had to check the
  15. >   PRELOAD box
  16.  
  17. Resources are not always read into memory, but frequently
  18. used ones and ones used at startup should be, so the
  19. preload attribute is available for all resources.
  20.  
  21. Not only should all menus be preloaded, they should also
  22. _never_ be marked as purgeable, as the menu manager doesnt
  23. wanna take the trouble to deal with disk I/O while fielding
  24. a menu hit.
  25.  
  26. Why not? Remember that the screen behind the menu is
  27. cached so that it can be restored by the menu mangler
  28. when the menu pops up, if I/O were done, and a problem
  29. arose, then an alert window would have to be displayed,
  30. which is real trouble for the 128k original Mac.
  31. Probably could be handled today, but not under low
  32. memory situations, so KISS is the basic answer.
  33.  
  34. >   This was not mentioned anywhere in the chapter
  35.  
  36. Well it sure is mentioned in Inside Mac, which you really
  37. should be reading along with any third party book.
  38.  
  39. >   I don't understand why it is required here yet not for
  40. >   the other menus.
  41.  
  42. Menus set up by the menu manager get detached, and are thus
  43. not resource handles anymore, not sure if you did things
  44. in a way that allowed these popups to still be resource
  45. handles, but if you some how managed to avoid detaching
  46. them and they got purged then that would explain a lot
  47. of what you saw.
  48.  
  49. Bone up on Resources in general, Menus in particular, but
  50. use the real IM (or NIM), not the Primer.  Couldnt hurt
  51. to sneak a peek at the tech notes as well.
  52. --
  53. dana s emery <de19@umail.umd.edu>
  54.  
  55. 
  56. 
  57. Path: ucivax!gateway
  58. From: Richard.Wolf@UICVM.UIC.EDU ("Richard K. Wolf")
  59. Subject: MacTCP examples ... ???
  60. X-Sender: U42641@uicvm.uic.edu
  61. Message-ID: <9312011022.aa13599@q2.ics.uci.edu>
  62. Content-Type: text/plain; charset="us-ascii"
  63. Mime-Version: 1.0
  64. Newsgroups: fa.think-c
  65. Lines: 17
  66. Date: 1 Dec 93 18:22:19 GMT
  67.  
  68. Hey everyone,
  69.  
  70. Can anyone point me in the direction of some simple MacTCP source?  I know
  71. fancy source exists for things like tn3270, etc., but I don't need anything
  72. that complex.  I just want something with no frills, but which shows the
  73. proper ways to open and use TCP streams.  Something really small and
  74. digestable would be ideal.
  75.  
  76. Thanks in advance!
  77.  
  78. Richard K. Wolf
  79. Richard.Wolf@uic.edu
  80. Small Systems Group
  81. Computer Center
  82. University of Illinois at Chicago
  83.  
  84.  
  85. 
  86. 
  87. Path: ucivax!gateway
  88. From: ASDVORAK@ccit.arizona.edu
  89. Subject: Request Info
  90. Message-ID: <01H5YOJT9S6Q8Y5NC8@CCIT.ARIZONA.EDU>
  91. Content-transfer-encoding: 7BIT
  92. MIME-version: 1.0
  93. Newsgroups: fa.think-c
  94. X-VMS-To: IN%"Think-C@ics.uci.edu"
  95. Lines: 4
  96. Date: 1 Dec 93 18:32:45 GMT
  97. X-Envelope-to: Think-C@ics.uci.edu
  98.  
  99. I just purchased Think C++ 6.0 and would like to know if there is a user group, someone to whom I can write to with questions, ftp sites with C source code written for Think C, or any other information you can give me.  Thank you.
  100.  
  101.             Alexander Dvorak
  102.             email: ASDVORAK@CCIT.ARIZONA.EDU
  103. 
  104. 
  105. Path: ucivax!gateway
  106. From: jonwd@uwtc.washington.edu (Jon Wiederspan)
  107. Subject: Extras for Think C++ 6.0
  108. Message-ID: <9312011918.AA07390@carson.u.washington.edu>
  109. Newsgroups: fa.think-c
  110. Lines: 5
  111. Date: 1 Dec 93 19:18:51 GMT
  112.  
  113. What kinds of extras (third party additions or shareware/freeware) are there
  114. for the new Think C/C++?  I used to have things like ProjectPrinterFKEY,
  115. Think Back, and Marker Control.  Do these still work?
  116.  
  117. Total Novice
  118. 
  119. 
  120. Path: ucivax!gateway
  121. From: arentz@batcave.knoware.nl (Stefan Arentz)
  122. Subject: Re: Extras for Think C++ 6.0
  123. X-Sender: arentz@runner.knoware.nl
  124. Message-ID: <9312012135.AA09002@indy.knoware.nl>
  125. Content-Type: text/plain; charset="us-ascii"
  126. Mime-Version: 1.0
  127. Newsgroups: fa.think-c
  128. Lines: 30
  129. Date: 1 Dec 93 20:37:38 GMT
  130.  
  131. >What kinds of extras (third party additions or shareware/freeware) are there
  132. >for the new Think C/C++?  I used to have things like ProjectPrinterFKEY,
  133. >Think Back, and Marker Control.  Do these still work?
  134. >
  135. >Total Novice
  136.  
  137. Hi Jon,
  138.  
  139. I am working on a shareware system extension called "THINK Power". The
  140. hottest features are:
  141.  
  142.  - Popup Menus with funtions/methods and header files.
  143.  - Kissing (Auto hiliting of [], {} and () pairs)
  144.  - Tiling and Stacking windows
  145.  - Extensions (a la BBEdit)
  146.  - Shortcuts. You can change the command keys to navigate through text windows.
  147.  
  148. You can get a copy of the first beta from the umich mac archive. I really
  149. need some good bug reports, so if you have the time...
  150.  
  151. Greetings,
  152.  -- Stefan Arentz
  153.  
  154.  
  155. ----------------------------------------------------------------------------
  156. Stefan Arentz            -- Software Constructor --        arentz@knoware.nl
  157. ----------------------------------------------------------------------------
  158.                     Scrub-a-dub-dub with Barney in the tub!
  159.  
  160.  
  161. 
  162. 
  163. Path: ucivax!gateway
  164. From: gurgle@netcom.com (Pete Gontier)
  165. Subject: Re: Extras for Think C++ 6.0
  166. Message-ID: <199312012140.NAA21384@mail.netcom.com>
  167. In-Reply-To: <9312011918.AA07390@carson.u.washington.edu>; from "Jon Wiederspan" at Dec 1, 93 7:18 pm
  168. X-Mailer: ELM [version 2.3 PL11]
  169. Newsgroups: fa.think-c
  170. Lines: 14
  171. Date: 1 Dec 93 21:40:08 GMT
  172.  
  173. > What kinds of extras (third party additions or shareware/freeware)
  174. > are there for the new Think C/C++?  I used to have things like
  175. > ProjectPrinterFKEY, Think Back, and Marker Control.  Do these still
  176. > work?
  177.  
  178. Symantec must have seen all these utilities, decided there was user
  179. demand, and forced the developers to work on adding these features to
  180. the environment properly. It now prints the project window, compiles
  181. in the background, and does markers better. Unfortunately, these
  182. features apparently cost more than money -- they cost the stability
  183. of the C++ compiler, too.
  184.  
  185. --
  186.  Pete Gontier // EC Technology // gurgle@netcom.com
  187. 
  188. 
  189. Path: ucivax!gateway
  190. From: sjm@ptltd.com (Steve Morris)
  191. Subject: please un-subscribe
  192. Message-ID: <9312012158.AA22819@yar.ptltd.com>
  193. Newsgroups: fa.think-c
  194. Lines: 16
  195. Date: 1 Dec 93 21:58:51 GMT
  196.  
  197.  
  198. Eithor my mail isn't making it, I`m sending to the incorrect address, or I'm
  199. being ignored. I would like off this list and have been trying to say as much
  200. to think-c-request@ics.uci.edu but am having no luck. Could someone correct me
  201. or forward my request to the correct address? I would appreciate it. It's painful
  202. enough to have had to sell my Mac and leave Mac development without frequent
  203. think-c reminders that others are still having fun.
  204.  
  205. Regards
  206. --
  207. Steve Morris
  208. <steve_morris@ptltd.com>
  209. Phoenix Technologies LTD
  210. 38 Sidney Street
  211. Cambridge, MA 02139
  212. (617) 551-5042
  213. 
  214. 
  215. Path: ucivax!gateway
  216. From: wisdom@picasso.ocis.temple.edu (Robert Wisdom)
  217. Subject: Re: Request Info
  218. Message-ID: <Pine.2.4.54.9312020041.B856@picasso.ocis.temple.edu>
  219. In-Reply-To: <01H5YOJT9S6Q8Y5NC8@CCIT.ARIZONA.EDU>
  220. Newsgroups: fa.think-c
  221. Lines: 17
  222. Date: 2 Dec 93 05:58:07 GMT
  223.  
  224. On xxx, 1 Dec 1993, ASDVORAK@ccit.arizona.edu wrote:
  225.  
  226. > I just purchased Think C++ 6.0 and would like to know if there is a user
  227. > group, someone to whom I can write to with questions, ftp sites with C
  228. > source code written for Think C, or any other information you can give me.
  229.  
  230. > Thank you.
  231.  
  232.     I just got the updater off sumex (anonymous ftp to
  233. sumex.stanford.edu).  The name is symantec-cpp-updater-6.01.hqx (maybe,
  234. this is close though), and is in the /dev directory.  Maybe I should get
  235. Symantec C++ now :-)  You might want to pick it up too.
  236.  
  237. >             Alexander Dvorak
  238. >             email: ASDVORAK@CCIT.ARIZONA.EDU
  239.  
  240.     Robert Wisdom
  241. 
  242. 
  243. Path: ucivax!gateway
  244. From: jimlynch@netcom.com (Jim Lynch)
  245. Subject: Re: MacTCP examples ... ???
  246. Message-ID: <199312020914.BAA26218@mail.netcom.com>
  247. Newsgroups: fa.think-c
  248. Lines: 19
  249. Date: 2 Dec 93 09:14:26 GMT
  250.  
  251. >Hey everyone,
  252. >
  253. >Can anyone point me in the direction of some simple MacTCP source?  I know
  254. >fancy source exists for things like tn3270, etc., but I don't need anything
  255. >that complex.  I just want something with no frills, but which shows the
  256. >proper ways to open and use TCP streams.  Something really small and
  257. >digestable would be ideal.
  258. >
  259. >Thanks in advance!
  260. >
  261. >Richard K. Wolf
  262. >Richard.Wolf@uic.edu
  263. >Small Systems Group
  264. >Computer Center
  265. >University of Illinois at Chicago
  266.  
  267. If digestible size, I'd like a peek, as well. Thanks...
  268. -Jim
  269.  
  270. 
  271. 
  272. Path: ucivax!gateway
  273. From: G.POLDER@cpro.agro.nl
  274. Subject: saving preferences
  275. Message-ID: <9312021000.AA05029@ganges.agro.nl>
  276. Content-transfer-encoding: 7BIT
  277. Newsgroups: fa.think-c
  278. Lines: 23
  279. Date: 2 Dec 93 10:01:25 GMT
  280. X-Envelope-to: think-c@ics.uci.edu
  281.  
  282. I like to save my prefs in a file.
  283. In system 7 this is done in another directory as in system 6.
  284. Also the directory names in local system versions are different.
  285. Is there a standard procedure to do this, or an example program,
  286. ar have I to do it all myself, e.g. checking system version,
  287. and directorynames.
  288.  
  289. thanks, Gerrit.
  290.  
  291. From:        Gerrit Polder
  292.              CPRO-DLO
  293.              P.O. Box 16
  294.              6700 AA   Wageningen
  295.              The Netherlands                         \\    //
  296.                                                       \\  //
  297. Phone:       +31.8370.76842                             \/
  298. Fax:         +31.8370.22994                             /\
  299. Email:       g.polder@cpro.agro.nl   _                //  \\
  300. HAM-Radio:   PA3BYA                 / \              //|  |\\
  301. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/   \               |  |
  302.                                         \     _________| #|_________
  303.                                          \~~~/
  304.                                           \_/
  305. 
  306. 
  307. Path: ucivax!gateway
  308. From: breitlin@cuug.ab.ca ("Wolfgang Breitling (403"), "7085)"@ics.uci.edu
  309. Subject: Re: saving preferences
  310. Message-ID: <9312021334.AA25058@hp.cuug.ab.ca>
  311. In-Reply-To: <9312021000.AA05029@ganges.agro.nl>; from "G.POLDER@cpro.agro.nl" at Dec 2, 93 10:01 am
  312. Mailer: Elm [revision: 70.85]
  313. Newsgroups: fa.think-c
  314. Lines: 13
  315. Date: 2 Dec 93 13:36:01 GMT
  316.  
  317. >
  318. > I like to save my prefs in a file.
  319. > In system 7 this is done in another directory as in system 6.
  320. > Also the directory names in local system versions are different.
  321. > Is there a standard procedure to do this, or an example program,
  322. > ar have I to do it all myself, e.g. checking system version,
  323. > and directorynames.
  324. >
  325. Have a look at ftp.brown.edu. It is the home of an archive of Think Class
  326. Library classes contributed by various people on the net. One of the classes
  327. does preference file reading and writing and as far as I remember. it has a
  328. non-TCL version as well. In the worst case you can copy the relevant code
  329. out of the class. Look in pub/tcl/classes (or something like that).
  330. 
  331. 
  332. Path: ucivax!gateway
  333. From: breitlin@cuug.ab.ca ("Wolfgang Breitling (403"), "7085)"@ics.uci.edu
  334. Subject: Re: MacTCP examples ... ???
  335. Message-ID: <9312021337.AA25121@hp.cuug.ab.ca>
  336. In-Reply-To: <199312020914.BAA26218@mail.netcom.com>; from "Jim Lynch" at Dec 2, 93 9:14 am
  337. Mailer: Elm [revision: 70.85]
  338. Newsgroups: fa.think-c
  339. Lines: 13
  340. Date: 2 Dec 93 13:38:14 GMT
  341.  
  342. >
  343. > >Hey everyone,
  344. > >
  345. > >Can anyone point me in the direction of some simple MacTCP source?  I know
  346. > >fancy source exists for things like tn3270, etc., but I don't need anything
  347. > >that complex.  I just want something with no frills, but which shows the
  348. > >proper ways to open and use TCP streams.  Something really small and
  349. > >digestable would be ideal.
  350. > >
  351.  
  352. The TCL class archives at ftp.brown.edu contain a class dealing with TCP. I
  353. haven't looked inside but I would assume it should contain code dealing with
  354. those basics.
  355. 
  356. 
  357. Path: ucivax!gateway
  358. From: peterb@tpg.com ("Peter E. Britton - Ext. 234")
  359. Subject: Unsubscribe
  360. X-Sun-Charset: US-ASCII
  361. Message-ID: <9312020127.AA11240@josh.tpg.com>
  362. Content-Length: 81
  363. Newsgroups: fa.think-c
  364. Lines: 3
  365. Date: 3 Dec 93 04:00:24 GMT
  366.  
  367. Please remove my name from the subscription list for this group.
  368.  
  369. peterb@tpg.com
  370. 
  371. 
  372. Path: ucivax!gateway
  373. From: TPZ4@vm.cnuce.cnr.it
  374. Subject: (none)
  375. Message-ID: <9312030223.aa04741@q2.ics.uci.edu>
  376. Newsgroups: fa.think-c
  377. Lines: 18
  378. Date: 3 Dec 93 10:23:47 GMT
  379.  
  380. I'm writing a small application using TCL. I use ReadAll to put some data in
  381. a handle called myData. Then, when user select a command, a routine manipulate
  382. the data and puts them in another handle called newData (which is local).
  383. Finally I assign the new handle to the old one like:
  384.      myData = newData;
  385. when i step out this routine, everything crashes the first time that I send
  386. any messages to gDesktop. Debugging, I discovered that newData has the same add
  387. ress of global gDesktop, inside the local routine, and therefore, when I assign
  388. to myData the same address, something weird happens...
  389. I'm looking for hints about the following problems:
  390. 1)How can I just manipulate data (ASCII in this case) without having to assing
  391. to an EditText object.
  392. 2)How can I avoid to assign same addresses to different items?
  393. 3)How do I know which item the TCL strcture keeps global, and which local?
  394.  
  395. I know it's a lot, thank you in advance
  396.  
  397. Rodolfo Cardarelli
  398. 
  399. 
  400. Path: ucivax!gateway
  401. From: jpff@maths.bath.ac.uk
  402. Subject: A silly question of icons
  403. Message-ID: <9312030356.aa08785@q2.ics.uci.edu>
  404. Newsgroups: fa.think-c
  405. Lines: 10
  406. Date: 3 Dec 93 11:56:58 GMT
  407.  
  408. Message written at Thu Dec  2 23:01:36 GMT 1993
  409.  
  410. I am sure that the answer is simple, but it is causing me great pain.
  411. I have an application which I would like to have its own icon.  I have
  412. added the necessary icons with SAres, and RedEdit shows that they are
  413. there.  The problem is that it does not show the icon, never.  I did this
  414. before and it does show the icon, but for this new applicaton it does not
  415. work.  Could some kind person give me some clues?
  416.  
  417. ==John
  418. 
  419. 
  420. Path: ucivax!gateway
  421. From: jeffc@cc.snow.edu ("Jeffrey K. Carney")
  422. Subject: Re: A silly question of icons
  423. Message-ID: <9312030701.aa01900@q2.ics.uci.edu>
  424. Content-Type: text/plain; charset="us-ascii"
  425. Mime-Version: 1.0
  426. Newsgroups: fa.think-c
  427. Lines: 25
  428. Date: 3 Dec 93 15:01:25 GMT
  429.  
  430. >I have an application which I would like to have its own icon.  I have
  431. >added the necessary icons with SAres, and RedEdit shows that they are
  432. >there.  The problem is that it does not show the icon, never.  I did this
  433. >before and it does show the icon, but for this new applicaton it does not
  434. >work.  Could some kind person give me some clues?
  435.  
  436. 1.  Make sure your icons are linked to your file signature.  The easiest
  437. way is to open you bundle bits resource on EXTENDED VIEW.  This will map
  438. the whole icon signature structure, and you can make changes as you need
  439. to.
  440.  
  441. 3.  Have you assigned the proper file signature (corresponding to the one
  442. you assigned in RES) to your project itself while still in the compiler?
  443. You must impose the match; it is not done automatically for you.  Use the
  444. "Set Project Type" command in the Project menu.
  445.  
  446. 2.  Have you tried rebuilding your desktop?  [Hold down command-option
  447. during startup; or force-quit finder and hold down those keys as finder
  448. automatically launches itself again.]  If the desktop data file contains an
  449. old icon for the file signature (which it might if you're using a signature
  450. you've used before), you'll get screwed up results.
  451.  
  452. Anyone else?
  453.  
  454.  
  455. 
  456. 
  457. Path: ucivax!gateway
  458. From: nagel@rdatasys.com ("Mark D. Nagel")
  459. Subject: ADMIN: delay in responses
  460. Message-ID: <28977.754936154@rdatasys>
  461. Newsgroups: fa.think-c
  462. Reply-To: nagel@rdatasys.com
  463. Organization: Relational Data Systems, Irvine, CA
  464. Lines: 9
  465. Date: 3 Dec 93 16:46:07 GMT
  466. Phone: (714) 263-3899
  467.  
  468. I'd like to apologize for not responding to messages to
  469. think-c-request since this past weekend.  In order for me to manage
  470. the list, I have to dial into the UC Irvine terminal server.  Since
  471. this is the last week of the quarter, doing that has become nearly
  472. impossible due to modem congestion.  I will hopefully be able to
  473. deal with the backlog this weekend.  Your patience is appreciated.
  474.  
  475. Mark
  476.  
  477. 
  478. 
  479. Path: ucivax!gateway
  480. From: denboer@cc.umanitoba.ca ("David A. denBoer")
  481. Subject: Animating Text
  482. X-Sender: denboer@ccu.umanitoba.ca
  483. Message-ID: <9312060228.AA00501@canopus.CC.UManitoba.CA>
  484. Content-Type: text/plain; charset="us-ascii"
  485. Mime-Version: 1.0
  486. Newsgroups: fa.think-c
  487. Lines: 20
  488. Date: 6 Dec 93 02:28:59 GMT
  489.  
  490. You may or may not have seen this question floating around lately, but I'll
  491. take a stab at this list as well.
  492. My application needs to be able to let the user animate text on any color
  493. background, and have any colored text.  Coloring the text and background is
  494. no problem.  Animating the text is.  Using simple calls to DrawString, and
  495. offsetting the string in any given direction (eg up and left), I get fairly
  496. smooth animation, but depending on the font (and size), the text sometimes
  497. bleeds, or leaves a trail behind it the same color as the text.  It sometimes
  498. looks neat, but it is not what we need.
  499. Is there a better way to draw and move text around than what I said above?  I
  500. thought of drawing it to a PicHandle, and giving it an oversized background so
  501. it does not bleed, but this proves to be too memory intensive at larger font
  502. sizes.
  503. Please lend a hand, as this has been a headache for a few weeks.
  504.  
  505. David A. denBoer                                Computer Consultant/Programmer
  506. University of Manitoba                       Computer Services - User Services
  507.      "Ducks Unlimited - Conserving ducks to blow the sh*t out of them."
  508.  
  509.  
  510. 
  511. 
  512. Path: ucivax!gateway
  513. From: jpff@maths.bath.ac.uk
  514. Subject: Re: A silly question of icons
  515. Message-ID: <9312060106.aa12457@q2.ics.uci.edu>
  516. Newsgroups: fa.think-c
  517. Lines: 9
  518. Date: 6 Dec 93 09:06:12 GMT
  519.  
  520. Message written at Sun Dec  5 08:23:52 GMT 1993
  521.  
  522. Thank you everyone who took the trouble to answer my naive question.
  523. The commonest answer was to rebuild the desktop.  I suspected that
  524. that was the thing I needed but I did not know how to do it!  Anyway
  525. doing it did not cause the icons to appear.  So it is back to checking
  526. all the other suggestions.
  527.  
  528. ==John
  529. 
  530. 
  531. Path: ucivax!gateway
  532. From: ASDVORAK@ccit.arizona.edu
  533. Subject: ShowInit
  534. Message-ID: <01H678TAEJAA8WX99X@CCIT.ARIZONA.EDU>
  535. Content-transfer-encoding: 7BIT
  536. MIME-version: 1.0
  537. Newsgroups: fa.think-c
  538. X-VMS-To: IN%"think-c@ics.uci.edu"
  539. Lines: 32
  540. Date: 7 Dec 93 21:53:16 GMT
  541. X-Envelope-to: think-c@ics.uci.edu
  542.  
  543. Yesterday, I bought the 'Macintosh C Programming Primer, Vol II' to learn more
  544. about how to write inits.  However, some of the code for ShowInit.c wouldn't
  545. compile.  Three lines gave 'syntax error'.  Could anyone tell me why?
  546. ----------------------------------
  547.     OpenPort(&myPort);
  548.     colorFlag=0;
  549.     if (!(BitTst(&ROM85,7-hasCQDBit)))   /*This line gives 'syntax error'
  550. */
  551.     {
  552.         theMainDevice = MainDevice;
  553.         theDepth= (*(*theMainDevice)->gdPMap)->pixelSize;
  554.         if (theDepth>=minColorDepth)
  555.         {
  556.             if ((theIconHdl = (Handle)GetCIcon(iconID)) !=0L)
  557.                 colorFlag =1;
  558.         }
  559.     }
  560. ---------------------------------
  561. dh = (myH << 1) ^ checksumConst;
  562. myH = ((dh == myCheck) ? (myH):(firstX));  /* This line gives 'syntax error' */
  563. destRect.bottom = myPort.portRect.bottom - bottomEdge;
  564. ---------------------------------
  565. myH += ((moveX == -1) ? (defaultMoveX):(moveX));  /* This line gives 'syntax
  566. error' */
  567. myCheck = (myH << 1) ^ checksumConst;
  568. ---------------------------------
  569.  
  570. Also, is there a list of corrections for this book?  I am using Think C 6.0.1.
  571. Thanks for your help.
  572.  
  573. Alexander
  574. email: asdvorak@ccit.arizona.edu
  575. 
  576. 
  577. Path: ucivax!gateway
  578. From: de19@umail.umd.edu (Dana S Emery)
  579. Subject: Re: ShowInit
  580. Message-ID: <Mailstrom.1.03.35264.-2558.de19@umail.umd.edu>
  581. In-Reply-To: Your message <01H678TAEJAA8WX99X@CCIT.ARIZONA.EDU> of 7 Dec 93
  582.  21:53:16 GMT
  583. Content-Type: TEXT/plain; charset=US-ASCII
  584. Newsgroups: fa.think-c
  585. Lines: 38
  586. Date: 8 Dec 93 00:28:18 GMT
  587.  
  588. Unlike Think Pascal, Think C only shows the line in error.
  589. Luckily, you can freely rearrange that line to enable the
  590. compiler to show you what it doesnt like.
  591.  
  592. Change
  593.  
  594. >       if (!(BitTst(&ROM85,7-hasCQDBit)))
  595.  
  596. so each token is on a seperate line
  597.  
  598. if
  599. (
  600. !
  601. (
  602. BitTst
  603. (
  604. &
  605. ROM85
  606. ,
  607. 7
  608. -
  609. hasCQDBit
  610. )
  611. )
  612. )
  613.  
  614. then re-compile, the errant token will be plainly identified.
  615.  
  616. After a while you get used to the time it takes to splat the tokens and
  617. reassemble them.  One might be tempted to use a binary search strategy, but I
  618. have found its usually fastest to go splat.
  619.  
  620. The diagnosis is up to you, that particular error is often triggered by a
  621. missing type definition, maybe you have neglected to #include some crucial
  622. header file.
  623. --
  624. dana s emery <de19@Umail.umd.edu>
  625.  
  626. 
  627. 
  628. Path: ucivax!gateway
  629. From: jimlynch@netcom.com (Jim Lynch)
  630. Subject: Re: ShowInit
  631. Message-ID: <199312081210.EAA01071@mail.netcom.com>
  632. Newsgroups: fa.think-c
  633. Lines: 43
  634. Date: 8 Dec 93 12:10:56 GMT
  635.  
  636. >Unlike Think Pascal, Think C only shows the line in error.
  637. >Luckily, you can freely rearrange that line to enable the
  638. >compiler to show you what it doesnt like.
  639. >
  640. >Change
  641. >
  642. >>       if (!(BitTst(&ROM85,7-hasCQDBit)))
  643. >
  644. >so each token is on a seperate line
  645. >
  646. >if
  647. >(
  648. >!
  649. >(
  650. >BitTst
  651. >(
  652. >&
  653. >ROM85
  654. >,
  655. >7
  656. >-
  657. >hasCQDBit
  658. >)
  659. >)
  660. >)
  661. >
  662. >then re-compile, the errant token will be plainly identified.
  663. >
  664. >After a while you get used to the time it takes to splat the tokens and
  665. >reassemble them.  One might be tempted to use a binary search strategy, but I
  666. >have found its usually fastest to go splat.
  667. >
  668. >The diagnosis is up to you, that particular error is often triggered by a
  669. >missing type definition, maybe you have neglected to #include some crucial
  670. >header file.
  671. >--
  672. >dana s emery <de19@Umail.umd.edu>
  673.  
  674. We should get Eric Slosser to put a "splat"er (and an un"splat"er) in his
  675. PopUpFuncs program.
  676.  
  677. -Jim
  678.  
  679. 
  680. 
  681. Path: ucivax!gateway
  682. From: ahouse@hydra.rose.brandeis.edu (Jeremy Creighton Ahouse)
  683. Subject: containers in Think C++ or Think C
  684. Message-ID: <9312081833.AA01277@hydra.rose.brandeis.edu>
  685. Content-Type: text/plain; charset="us-ascii"
  686. Mime-Version: 1.0
  687. Newsgroups: fa.think-c
  688. Lines: 32
  689. Date: 8 Dec 93 18:30:11 GMT
  690.  
  691. My favorite feature in Apple's HyperTalk language is the easy way that
  692. containers can be manipulated... these are essentially variable length
  693. arrays that store text, and allow you to:
  694.         put "any string" into myContainer
  695.         put "any string" after char 27 of myContainer
  696.         put "any string" into word 1 of myContainer
  697.         put "any string" after item 5 of myContainer
  698.         put "any string" before line 3 of myContainer
  699.  
  700.         etc... and ofcourse you can get any of thes substrings as easily...
  701.  
  702.         have any of you all written this kind of thing as a C++ class or a
  703. ThinkClassLibrary class?
  704.  
  705.         Thanks,
  706.                 Jeremy
  707.  
  708.  
  709.         :::::::::::::::::::::::::::::::::::::::::::
  710.         Jeremy Creighton Ahouse
  711.         Biology Dept. & Center for Complex Systems
  712.         Brandeis University
  713.         Waltham, MA 02254-9110
  714.  
  715.         (617) 736-4954
  716.         email: ahouse@hydra.rose.brandeis.edu
  717.         Mail from Mac by Eudora 1.3.1 RIPEM/PGP accepted.
  718.  
  719.         "Si un hombre nunca se contradice, sera porque nunca dice nada"
  720.                 - Miguel de Unamuno
  721.  
  722.  
  723. 
  724. 
  725. Path: ucivax!gateway
  726. From: vthrc@mailbox.uq.oz.au (Danny Thomas)
  727. Subject: reporting syntax errors (was Re: ShowInit)
  728. X-Sender: vthrc@mailbox.uq.oz.au.
  729. Message-ID: <199312082132.HAA01605@xroads.vthrc.uq.oz.au>
  730. Content-Type: text/plain; charset="us-ascii"
  731. Mime-Version: 1.0
  732. Newsgroups: fa.think-c
  733. Lines: 46
  734. Date: 8 Dec 93 21:39:57 GMT
  735.  
  736. >>Unlike Think Pascal, Think C only shows the line in error.
  737. >>Luckily, you can freely rearrange that line to enable the
  738. >>compiler to show you what it doesnt like.
  739. ...
  740. >We should get Eric Slosser to put a "splat"er (and an un"splat"er) in his
  741. >PopUpFuncs program.
  742.  
  743. How about get Symantec to report the token!
  744. Surely it can't be very hard and more descriptive error output has got to
  745. be better** particularly for novices.
  746.  
  747. And some other syntax-checkable things I've long wanted
  748.    when a type-mismatch is reported how about saying
  749.      "I'm expecting a *char for 'variable_x'
  750.       but the assignment expression is **char"
  751.      Again this can't be hard - the compiler has the info and only has to
  752.      reformat its internal representation of types.
  753.    and a pragma so you can specify that a particular function argument
  754.      is a printf/scanf-style format string and which of the remaining
  755.      arguments corresponds to the first item in that format specification.
  756.      Apart from the ability to check the standard library functions,
  757.      such a pragma would allow checking of user-defined stdarg-type
  758.      functions. I often define a simple abort() or message() function
  759.      that uses a format-string to give a detailed diagnostic, but I'm a
  760.      bit paranoid and many of these error() messages aren't invoked during
  761.      my informal testing so it may not be till months later that a error
  762.      occurs and I find a corrupted diagnostic message that isn't so helpful
  763.      simply because I made a mistake in the format string.
  764.  
  765.  
  766. cheers,
  767. Danny Thomas
  768.  
  769. PS although I've loaded Symantec C++ onto my hard-disk I haven't had a
  770. chance to use it. If it incorparates some of those suggestions, great, but
  771. it shouldn't have taken this long.
  772.  
  773.  
  774. ** and because TC (pre 6) stops at the first error (a long-complained about
  775. mis-feature), it is simply not the case that a error leads to a cascade of
  776. diagnostics making it hard to figure out the significant messages. It may
  777. be that the TC developers thought that continuing after an error made the
  778. parsing routines too complex, but I don't know of any justification for not
  779. providing as useful error an message as possible.
  780.  
  781.  
  782. 
  783. 
  784. Path: ucivax!gateway
  785. From: chharris@u.washington.edu (The Only Cow)
  786. Subject: Color Classic Screen
  787. X-Sender: chharris@stein1.u.washington.edu
  788. Message-ID: <Pine.3.87.9312081649.D4357-0100000@stein1.u.washington.edu>
  789. Content-Type: TEXT/PLAIN; charset=US-ASCII
  790. Mime-Version: 1.0
  791. Newsgroups: fa.think-c
  792. Lines: 18
  793. Date: 9 Dec 93 00:56:50 GMT
  794.  
  795. Can anyone tell me if apple has provided any routines to turn off the
  796. screen on a Color Classic as is done automatically by the system software
  797. after a preset time?
  798.  
  799. Does apple keep some archive of code specific to various machines that I
  800. should be looking at?
  801.  
  802. Thanks for yer help...
  803.  
  804. -Chris
  805.  
  806. ------------------------------------------------------------------------------
  807.    "To error is human, but to really foul things up, you need a computer."
  808.                    Send questions, comments, flames, etc. to:
  809.                     Chris Harris / chharris@u.washington.edu
  810.                       PGP Signature availible via finger...
  811.  
  812.  
  813. 
  814. 
  815. Path: ucivax!gateway
  816. From: jimlynch@netcom.com (Jim Lynch)
  817. Subject: Re: reporting syntax errors (was Re: ShowInit)
  818. Message-ID: <199312090056.QAA17143@mail.netcom.com>
  819. Newsgroups: fa.think-c
  820. Lines: 27
  821. Date: 9 Dec 93 00:57:29 GMT
  822.  
  823. >>>Unlike Think Pascal, Think C only shows the line in error.
  824. >>>Luckily, you can freely rearrange that line to enable the
  825. >>>compiler to show you what it doesnt like.
  826. >...
  827. >>We should get Eric Slosser to put a "splat"er (and an un"splat"er) in his
  828. >>PopUpFuncs program.
  829. >
  830. >How about get Symantec to report the token!
  831. >Surely it can't be very hard and more descriptive error output has got to
  832. >be better** particularly for novices.
  833.  
  834. Good idea.
  835.  
  836. I tried it last year and before that, in the days of TC4.
  837.  
  838. I was ignored both times, however my suggestion for a "find ALL the errors,
  839. generate warnings, double clicking takes me to that line" was not ignored.
  840.  
  841. Phil...?
  842.  
  843. We need for Think C and C++ to hilite the TOKEN at which the error was
  844. found, not just the line.
  845.  
  846. Thanks Phil.
  847.  
  848. -Jim
  849.  
  850. 
  851. 
  852. Path: ucivax!gateway
  853. From: de19@umail.umd.edu (Dana S Emery)
  854. Subject: Re: fix the bugs first (was reporting syntax errors)
  855. Message-ID: <Mailstrom.1.03.44216.15089.de19@umail.umd.edu>
  856. In-Reply-To: Your message <199312082132.HAA01605@xroads.vthrc.uq.oz.au> of 8
  857.  Dec 93 21:39:57 GMT
  858. Content-Type: TEXT/plain; charset=US-ASCII
  859. Newsgroups: fa.think-c
  860. Lines: 22
  861. Date: 9 Dec 93 15:21:59 GMT
  862.  
  863. >   How about get Symantec to report the token!
  864.  
  865. Lets encourage them to get the existing bugs in the: project
  866. manager, debugger, and C++ compiler, fixed first.
  867.  
  868. Marketing people just love to add new features, its so much
  869. easier than fixing bugs.
  870.  
  871. Please folks, dont ask S to fix stuff that has reasonable
  872. workarounds, keep up the pressure on them to fix the bugs.
  873.  
  874. what do we want?     fix the bugs
  875.  
  876. when do we want it?  NOW!!!
  877.  
  878. fix the bugs
  879. fix the bugs
  880. fix the bugs
  881. fix the bugs...
  882. --
  883. dana s emery <de19@Umail.umd.edu>
  884.  
  885. 
  886. 
  887. Path: ucivax!gateway
  888. From: jvp@tools1.ee.iastate.edu (Jim Van Peursem)
  889. Subject: Re: fix the bugs first (was reporting syntax errors)
  890. Message-ID: <9312091604.AA07558@tools1.ee.iastate.edu>
  891. In-Reply-To: Your message of "09 Dec 1993 15:21:59 GMT."
  892.              <Mailstrom.1.03.44216.15089.de19@umail.umd.edu>
  893. Newsgroups: fa.think-c
  894. Lines: 27
  895. Date: 9 Dec 93 16:00:27 GMT
  896.  
  897.  
  898. >>   How about get Symantec to report the token!
  899. >
  900. >Lets encourage them to get the existing bugs in the: project
  901. >manager, debugger, and C++ compiler, fixed first.
  902. >
  903. >Marketing people just love to add new features, its so much
  904. >easier than fixing bugs.
  905.  
  906.   This very true. But history shows that they usually release
  907. a new version every year or two, and the rest of the time they
  908. release bug fixes.
  909.  
  910. >Please folks, dont ask S to fix stuff that has reasonable
  911. >workarounds, keep up the pressure on them to fix the bugs.
  912.  
  913.   So I'd disagree with this. Make any and all suggestions to
  914. Symantec. They will probably get added to their list. But they
  915. realize that they need to fix the bugs in the compiler first.
  916. Have you _ever_ seen a x.1 version of any of their compilers?
  917. I doubt they will do that before fixing most of the existing
  918. bugs. That would be suicide.
  919.  
  920. ---
  921.  
  922. -Jim
  923.  
  924. 
  925. 
  926. Path: ucivax!gateway
  927. From: robert.ward@mrc-apu.cam.ac.uk (Robert Ward)
  928. Subject: XSYM files
  929. Via: uk.ac.cambridge.mrc-applied-psychology; Thu, 9 Dec 1993 18:12:49 +0000
  930. Message-ID: <3677.9312091812@algol.mrc-apu.cam.ac.uk>
  931. Newsgroups: fa.think-c
  932. Lines: 8
  933. Date: 9 Dec 93 19:10:10 GMT
  934.  
  935.  
  936. There doesn't seem to be any documentation on the XSYM files generated
  937. by Symantec C++ (at least I haven't been able to find it). Is this
  938. debugging information? If so, it only seems to be generated by the
  939. C++, not the C compiler.
  940.  
  941. rob
  942.  
  943. 
  944. 
  945. Path: ucivax!gateway
  946. From: jeffc@cc.snow.edu ("Jeffrey K. Carney")
  947. Subject: Getting Directory Info
  948. Message-ID: <9312091151.aa23029@q2.ics.uci.edu>
  949. Content-Type: text/plain; charset="us-ascii"
  950. Mime-Version: 1.0
  951. Newsgroups: fa.think-c
  952. Lines: 9
  953. Date: 9 Dec 93 19:51:56 GMT
  954.  
  955. I am generally having a hard time using low-level and high-level routines
  956. when trying to get finder information about a directory.  The same routines
  957. work fine when I pass data for a file, but return fnf when I pass data
  958. about a directory.  This is true for FSpGetFInfo, HGetInfo, and
  959. PBHGetFInfo.  IM says nothing about adjusting my data for a directory.  Has
  960. anyone experienced this problem and found a way around it?  What I really
  961. want to access is an FInfo record so I can toggle visibility.
  962.  
  963.  
  964. 
  965. 
  966. Path: ucivax!gateway
  967. From: gurgle@netcom.com (Pete Gontier)
  968. Subject: Re: XSYM files
  969. Message-ID: <199312092049.MAA22770@mail.netcom.com>
  970. In-Reply-To: <3677.9312091812@algol.mrc-apu.cam.ac.uk> from "Robert Ward" at Dec 9, 93 07:10:10 pm
  971. X-Mailer: ELM [version 2.4 PL21]
  972. Content-Transfer-Encoding: 7bit
  973. Content-Type: text/plain; charset=US-ASCII
  974. Content-Length: 427
  975. MIME-Version: 1.0
  976. Newsgroups: fa.think-c
  977. Lines: 11
  978. Date: 9 Dec 93 20:49:28 GMT
  979.  
  980. > (XSYM info) only seems to be generated by the C++, not the C compiler.
  981.  
  982. Perhaps you are looking at one project that is all C++ and one
  983. project that is all C. The check-box which controls whether to export
  984. the XSYM debugging info is a project-scope option. You can make your
  985. C project export XSYM files if you like.
  986.  
  987. Sorry this doesn't help you with the file format...
  988.  
  989. --
  990.  Pete Gontier // EC Technology // gurgle@netcom.com
  991. 
  992. 
  993. Path: ucivax!gateway
  994. From: ra104@cosc.bsu.umd.edu (Felix Njeh)
  995. Subject: unsubscribe
  996. Message-ID: <9312092105.AA22100@cosc.bsu.umd.edu>
  997. Newsgroups: fa.think-c
  998. Lines: 1
  999. Date: 9 Dec 93 21:03:11 GMT
  1000.  
  1001. unsubscribe
  1002. 
  1003. 
  1004. Path: ucivax!gateway
  1005. From: gregf@vulture.sps.mot.com (Greg Ferguson)
  1006. Subject: Re: reporting syntax errors (was Re: ShowInit)
  1007. Message-ID: <9312092109.AA11565@vulture.>
  1008. Content-Type: text/plain; charset="us-ascii"
  1009. Mime-Version: 1.0
  1010. Newsgroups: fa.think-c
  1011. Lines: 40
  1012. Date: 9 Dec 93 21:10:17 GMT
  1013.  
  1014. At  9:39 PM 12/8/93 +0000, Danny Thomas wrote:
  1015. >How about get Symantec to report the token!
  1016. >Surely it can't be very hard and more descriptive error output has got to
  1017. >be better** particularly for novices.
  1018. >
  1019. >And some other syntax-checkable things I've long wanted
  1020. >   when a type-mismatch is reported how about saying
  1021. >     "I'm expecting a *char for 'variable_x'
  1022. >      but the assignment expression is **char"
  1023. >     Again this can't be hard - the compiler has the info and only has to
  1024. >     reformat its internal representation of types.
  1025.  
  1026. This is an ages-old complaint and is extended to: "Why doesn't the compiler
  1027. fix the syntax and continue compiling if it knows what's expected?"
  1028.  
  1029. Probably because the "traditional" C compiler doesn't do that.
  1030.  
  1031. I believe that the Mac developer tools market is suffering because there is
  1032. too little competition. The (gasp) DOS world has several excellent
  1033. compilers and programming systems. (We're not arguing Mac O/S vs. Windows -
  1034. just Symantec C++ vs. Visual C++ and/or Borland C++ for Windows).
  1035.  
  1036. Just my $0.02.
  1037.  
  1038. Greg
  1039.  
  1040. --
  1041.  
  1042. Greg Ferguson
  1043.  
  1044. rtmd30@email.sps.mot.com
  1045. Motorola, SPS
  1046.  
  1047.  
  1048. =============================================================
  1049.       We haven't inherited the earth from our ancestors.
  1050.         We've borrowed it from our children instead.
  1051. =============================================================
  1052.  
  1053.  
  1054. 
  1055. 
  1056. Path: ucivax!gateway
  1057. From: wwedel@uswest.com (Wally Wedel)
  1058. Subject: Re: fix the bugs first (was reporting syntax errors)
  1059. X-Sender: wwedel@vangogh
  1060. Message-ID: <9312092116.AB19783@vangogh.advtech.uswest.com>
  1061. Content-Type: text/plain; charset="us-ascii"
  1062. Mime-Version: 1.0
  1063. Newsgroups: fa.think-c
  1064. Lines: 25
  1065. Date: 9 Dec 93 21:15:37 GMT
  1066.  
  1067.  
  1068. >  So I'd disagree with this. Make any and all suggestions to
  1069. >Symantec. They will probably get added to their list. But they
  1070. >realize that they need to fix the bugs in the compiler first.
  1071. >Have you _ever_ seen a x.1 version of any of their compilers?
  1072. >I doubt they will do that before fixing most of the existing
  1073. >bugs. That would be suicide.
  1074.  
  1075. Well in fact they don't get lots of bugs fixed! I (and others) reported the
  1076. problems with the strtod library function not being ANSI conformant (and in
  1077. fact broken) but it's still that way one major and one minor release later!
  1078.  
  1079. There are others too, of course. So it's not suicide to let some bugs slip
  1080. and the way that many companies evaluate bugs, enhancements, etc., is to
  1081. add them all to a list. When a developer goes into an area of the system
  1082. she looks at both bugs and enhancements and often does some of both.
  1083.  
  1084.  
  1085. Wally Wedel
  1086. U S WEST Communications
  1087. 4001 Discovery Drive, Suite 370
  1088. Boulder, CO 80303-7813
  1089. Internet: wwedel@uswest.com  AppleLink: D5100   Voice: 303-541-6052
  1090.  
  1091.  
  1092. 
  1093. 
  1094. Path: ucivax!gateway
  1095. From: JOYCES@acm.org
  1096. Subject: Competition between mac compilers.
  1097. Message-ID: <01H6A3RSLL4I002QLB@PASCAL.ACM.ORG>
  1098. Content-transfer-encoding: 7BIT
  1099. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  1100. MIME-version: 1.0
  1101. Newsgroups: fa.think-c
  1102. X-VMS-To: IN%"think-c@ics.uci.edu"
  1103. Lines: 15
  1104. Date: 9 Dec 93 21:26:25 GMT
  1105.  
  1106. reguarding a statement that dos machines have more competition between compiler
  1107. manufacturers than the mac market does, it appears that in the near future
  1108. that may be changing a little bit.  I found an article in macweek about a
  1109. month ago which mentioned that metroworks C/C++ is going to have a compiler
  1110. check flag to turn mac and powerPC binary compilation on and off.  The same
  1111. compiler would use one set of source code and compile a program for either
  1112. the mac, the powerPC, or (if I understood correctly) both at once (fat binaries).
  1113. The article went on to mention that the author thought it was both faster
  1114. and easier to use than its competitor.  Seeing how it bills itself as
  1115. a native c++ compiler for the mac I can only think of one competitor.
  1116.     I am anxiously waiting to see what happens, how easy it really
  1117. is (or isn't), and if they have a competitive upgrade offer.
  1118. Shawn Joyce
  1119. joyces@acm.org
  1120.  
  1121. 
  1122. 
  1123. Path: ucivax!gateway
  1124. From: idowell@bbn.com
  1125. Subject: flex and bison
  1126. Message-ID: <9312091334.aa09524@q2.ics.uci.edu>
  1127. Newsgroups: fa.think-c
  1128. Lines: 12
  1129. Date: 9 Dec 93 21:34:36 GMT
  1130.  
  1131. I've cobbled together new versions of Flex and Bison
  1132. under Symantec C 6.0 including a drag and drop
  1133. interface.  Since this is for my own use, I haven'
  1134. t included many niceties (only one file can be dropped,
  1135. no commandline flags, files must be in same directory
  1136. as flex/bison, etc.) but I think they work.  If there's
  1137. any interest (and this hasn't been done before) I may
  1138. improve them in the future.  If anyone is interested in
  1139. trying them out (warts and all), drop me a line.
  1140.  
  1141. Ian Dowell
  1142. idowell@bbn.com
  1143. 
  1144. 
  1145. Path: ucivax!gateway
  1146. From: jvp@tools1.ee.iastate.edu (Jim Van Peursem)
  1147. Subject: Re: fix the bugs first (was reporting syntax errors)
  1148. Message-ID: <9312092223.AA08007@tools1.ee.iastate.edu>
  1149. In-Reply-To: Your message of "09 Dec 1993 21:15:37 GMT."
  1150.              <9312092116.AB19783@vangogh.advtech.uswest.com>
  1151. Newsgroups: fa.think-c
  1152. Lines: 18
  1153. Date: 9 Dec 93 22:18:51 GMT
  1154.  
  1155.  
  1156. >There are others too, of course. So it's not suicide to let some bugs slip
  1157. >and the way that many companies evaluate bugs, enhancements, etc., is to
  1158. >add them all to a list. When a developer goes into an area of the system
  1159. >she looks at both bugs and enhancements and often does some of both.
  1160.  
  1161.   My comment was based on the fact that developers are very dissappointed
  1162. with the number of bugs in the compiler. It would be suicide to leave these
  1163. unfixed and release a new version. Sure there are going to be bugs in every
  1164. compiler, from release to resease. But they simply cannot (or should not if
  1165. they have any brains in management) leave the product as buggy as it is.
  1166.  
  1167. +---------------------------------------------------------------+
  1168. | Jim Van Peursem - Ph.D. Student - Ham Radio -> KE0PH          |
  1169. | Department of Electrical Engineering and Computer Engineering |
  1170. | Iowa State University - Ames, IA 50011                        |
  1171. | internet - jvp@iastate.edu  -or-  jvp@cpre1.ee.iastate.edu    |
  1172. +---------------------------------------------------------------+
  1173. 
  1174. 
  1175. Path: ucivax!gateway
  1176. From: vthrc@mailbox.uq.oz.au (Danny Thomas)
  1177. Subject: compiler bugs and testing (was re: fix ... )
  1178. X-Sender: vthrc@mailbox.uq.oz.au.
  1179. Message-ID: <199312092222.IAA02062@xroads.vthrc.uq.oz.au>
  1180. Content-Type: text/plain; charset="us-ascii"
  1181. Mime-Version: 1.0
  1182. Newsgroups: fa.think-c
  1183. Lines: 25
  1184. Date: 9 Dec 93 22:30:35 GMT
  1185.  
  1186. Wally Wedel <wwedel@uswest.com writes
  1187. >Well in fact they don't get lots of bugs fixed! I (and others) reported the
  1188. >problems with the strtod library function not being ANSI conformant (and in
  1189. >fact broken) but it's still that way one major and one minor release later!
  1190. a comment that doesn't inspire total confidence...
  1191.  
  1192. regarding new compiler releases and bugs, I would be *very* interested to
  1193. know which if any C & C++ compiler testing suites were used prior to
  1194. shipping. Perhaps the evolving nature of C++ has made this difficult in
  1195. comparison to the ANSI C compiler, but I would consider it totally
  1196. negligent for any significant compiler company to not use at least one of
  1197. these testing suites. I gather they're not cheap (five-dollar-digits)
  1198. though.
  1199.     Mind you if it was my company that supplied the C++ suite used by
  1200. Symantec, I'm not sure I'd want the company name mentioned in Symantec ads:
  1201.  
  1202.  "And it doesn't stop with our code quality and reliabilty!!
  1203.   Symantec C++ is ROBUST and STANDARD!! It passes all phases of the
  1204.   BitWiddle C++ Compiler Conformance & Torture Tests - no other
  1205.   Macintosh C++ compiler can say that!!"
  1206.  
  1207. cheers,
  1208. Danny Thomas
  1209.  
  1210.  
  1211. 
  1212. 
  1213. Path: ucivax!gateway
  1214. From: kirk_crawford@qmail2.aero.org (Kirk Crawford)
  1215. Subject: Got a list of bugs in TC6?
  1216. Message-ID: <199312092242.AA16540@aerospace.aero.org>
  1217. Posted-Date: 9 Dec 93 14:36:59 U
  1218. Newsgroups: fa.think-c
  1219. Lines: 6
  1220. Date: 9 Dec 93 22:42:25 GMT
  1221.  
  1222. Subject:  Got a list of bugs in TC6?
  1223. While we are on the subject of bugs in Think C, does anyone have a
  1224. comprehensive list of the current bugs in Think C 6?
  1225.  
  1226.  
  1227.  
  1228. 
  1229. 
  1230. Path: ucivax!gateway
  1231. From: emg@jobone.metaphor.com (Mike Greenawalt)
  1232. Subject: Re: reporting syntax errors
  1233. Message-ID: <9312092252.AA00997@jobone.Metaphor.COM>
  1234. Newsgroups: fa.think-c
  1235. Lines: 74
  1236. Date: 9 Dec 93 22:53:15 GMT
  1237.  
  1238. My $0.02 on the following discussion:
  1239.  
  1240. >  From: Greg Ferguson <gregf@vulture.sps.mot.com>
  1241. >  Subject: Re: reporting syntax errors (was Re: ShowInit)
  1242. >  Date: 9 Dec 93 21:10:17 GMT
  1243. >  To: think-c@ics.uci.edu
  1244. >
  1245. >  At  9:39 PM 12/8/93 +0000, Danny Thomas wrote:
  1246. >  >How about get Symantec to report the token!
  1247. >  >Surely it can't be very hard and more descriptive error output has got to
  1248. >  >be better** particularly for novices.
  1249. >  >
  1250. >  >And some other syntax-checkable things I've long wanted
  1251. >  >   when a type-mismatch is reported how about saying
  1252. >  >     "I'm expecting a *char for 'variable_x'
  1253. >  >      but the assignment expression is **char"
  1254. >  >     Again this can't be hard - the compiler has the info and only has to
  1255. >  >     reformat its internal representation of types.
  1256.  
  1257. Mr Thomas is absolutely right!  It should not be hard for the compiler to tell
  1258. us what it thinks is wrong beyond "Syntax error".
  1259.  
  1260. The IBM C Set/2 compiler for OS/2 does this very well.  It's error messages
  1261. give that kind of information extensively, and it sure does help to quickly
  1262. understand the complaint and to make the fix.  This is particularly true when
  1263. the compiler is used in the WorkFrame/2 context where the error messages get
  1264. tied to the editor.
  1265.  
  1266. I have been a ThinkC user (dabbler) since V1.02, and I have thought it the
  1267. slickest and best project management/programming/compiling environment.  But I
  1268. do OS/2 stuff at work, and (I can't believe I'm saying this) the
  1269. OS/2+WorkFrame/2+C Set/2+IPMD combination is just as slick and I like it.
  1270.  
  1271. >
  1272. >  This is an ages-old complaint and is extended to: "Why doesn't the compiler
  1273. >  fix the syntax and continue compiling if it knows what's expected?"
  1274.  
  1275. No! Never! The compiler may have a very good notion of what would allow it to
  1276. continue at a given error, but there may be several choices, and how would it
  1277. know what *you* meant? Giving the compiler the power to "fix" the code will
  1278. inevitably lead to lurking, unexposed defects.
  1279.  
  1280. >
  1281. >  Probably because the "traditional" C compiler doesn't do that.
  1282. >
  1283. >  I believe that the Mac developer tools market is suffering because there is
  1284. >  too little competition. The (gasp) DOS world has several excellent
  1285. >  compilers and programming systems. (We're not arguing Mac O/S vs. Windows -
  1286. >  just Symantec C++ vs. Visual C++ and/or Borland C++ for Windows).
  1287. >
  1288. >  Just my $0.02.
  1289. >
  1290. >  Greg
  1291. >
  1292. >  --
  1293. >
  1294. >  Greg Ferguson
  1295. >
  1296. >  rtmd30@email.sps.mot.com
  1297. >  Motorola, SPS
  1298. >
  1299. >
  1300. >  =============================================================
  1301. >        We haven't inherited the earth from our ancestors.
  1302. >          We've borrowed it from our children instead.
  1303. >  =============================================================
  1304.  
  1305. +---------------------------+--------------------------------------------+
  1306. | Mike Greenawalt           | emg@metaphor.com                           |
  1307. | Metaphor, Inc.            | Metaphors be with you.                     |
  1308. | 1965 Charleston Road      |                                            |
  1309. | Mountain View, CA 94043   | These opinions are mine, not my employer's |
  1310. +---------------------------+--------------------------------------------+
  1311.  
  1312. 
  1313. 
  1314. Path: ucivax!gateway
  1315. From: de19@umail.umd.edu (Dana S Emery)
  1316. Subject: Re: reporting syntax errors
  1317. Message-ID: <Mailstrom.1.03.25125.15089.de19@umail.umd.edu>
  1318. In-Reply-To: Your message <9312092252.AA00997@jobone.Metaphor.COM> of 9 Dec
  1319.  93 22:53:15 GMT
  1320. Content-Type: TEXT/plain; charset=US-ASCII
  1321. Newsgroups: fa.think-c
  1322. Lines: 39
  1323. Date: 10 Dec 93 04:15:59 GMT
  1324.  
  1325. Reporting the token in error is difficult for some forms of
  1326. compiler, but since splatting the line allows token
  1327. identification to be displayed in the present compiler, it
  1328. is clear that the necessary information available at the
  1329. time the error is being displayed.
  1330.  
  1331. The compiler could reference the token number, but when it
  1332. reports an error it does so to the editor module, right?
  1333.  
  1334. Surmise here, but I would guess that it is easier for the
  1335. editor to work on a line number basis than for it to work
  1336. on a token basis, considering that #defines and #includes
  1337. affect the token stream in ways the editor is otherwise
  1338. unaware of.
  1339.  
  1340. Maybe one of the authors of BBEdit or Alpha cares to
  1341. comment, they must have had to deal with this, having
  1342. authored a compatible editor module.
  1343.  
  1344. Frankly, I have no quibbles with doing an occaisional
  1345. splat now and then, if the editor puts in an interface
  1346. to help so much the better, but detailed feedback from
  1347. the compiler, much as it would be "nice", is not a very
  1348. high priority on my wish list at this time.
  1349.  
  1350. I want the damn bugs fixed before that particular luxury.
  1351.  
  1352. Maybe my umpteen years of dealing with mainframe compilers
  1353. (Fortran, Algol, Cobol, Mary, Basic (yes virginia, not
  1354. all Basic was interpreted) has taught me not to expect
  1355. any better.  There is a lesson to be learned in the
  1356. tyrany of Think Pascal's pretty printing editor (Think
  1357. Pascal attempts to show offending tokens): be careful what
  1358. you ask for, the gods will surely find a may to grant it
  1359. which will make you regret ever having had the nerve to
  1360. raise your voice.
  1361. --
  1362. dana s emery <de19@umail.umd.edu>
  1363.  
  1364. 
  1365. 
  1366. Path: ucivax!gateway
  1367. From: siegel@netcom.com (Rich Siegel)
  1368. Subject: Re: reporting syntax errors
  1369. Message-ID: <199312101421.GAA16520@mail.netcom.com>
  1370. In-Reply-To: <Mailstrom.1.03.25125.15089.de19@umail.umd.edu> from "Dana S Emery" at Dec 10, 93 04:15:59 am
  1371. X-Mailer: ELM [version 2.4 PL21]
  1372. Content-Transfer-Encoding: 7bit
  1373. Content-Type: text/plain; charset=US-ASCII
  1374. Content-Length: 1095
  1375. MIME-Version: 1.0
  1376. Newsgroups: fa.think-c
  1377. Lines: 29
  1378. Date: 10 Dec 93 14:21:05 GMT
  1379.  
  1380. > The compiler could reference the token number, but when it
  1381. > reports an error it does so to the editor module, right?
  1382. >
  1383. > Surmise here, but I would guess that it is easier for the
  1384. > editor to work on a line number basis than for it to work
  1385. > on a token basis, considering that #defines and #includes
  1386. > affect the token stream in ways the editor is otherwise
  1387. > unaware of.
  1388. >
  1389. > Maybe one of the authors of BBEdit or Alpha cares to
  1390. > comment, they must have had to deal with this, having
  1391. > authored a compatible editor module.
  1392.  
  1393. Presently, the compiler only provides a line number. However, the only
  1394. token information that the compiler need provide is the character
  1395. offset on the line of the start and end of the offending token; that's
  1396. something that requires zero effort by the editor (or compiler) to
  1397. report or display.
  1398.  
  1399.  
  1400. > be careful what
  1401. > you ask for, the gods will surely find a may to grant it
  1402. > which will make you regret ever having had the nerve to
  1403. > raise your voice.
  1404.  
  1405. Indeed, and it might appear that the present Symantec C++ compiler is
  1406. an example of this principle in action.
  1407.  
  1408. R.
  1409. 
  1410. 
  1411. Path: ucivax!gateway
  1412. From: winter@ai.rl.af.mil (Jim Wintermyre)
  1413. Subject: Re: reporting syntax errors
  1414. Message-ID: <9312101628.AA19841@AI.RL.AF.MIL>
  1415. Newsgroups: fa.think-c
  1416. Lines: 20
  1417. Date: 10 Dec 93 16:28:03 GMT
  1418.  
  1419. Hi all,
  1420.  
  1421. Dana Emery notes:
  1422.  
  1423. > any better.  There is a lesson to be learned in the
  1424. > tyrany of Think Pascal's pretty printing editor (Think
  1425. > Pascal attempts to show offending tokens): be careful what
  1426. > you ask for, the gods will surely find a may to grant it
  1427. > which will make you regret ever having had the nerve to
  1428. > raise your voice.
  1429.  
  1430. Well, I just have to jump in and say that I *like* THINK Pascal's editor.  I
  1431. know right away when I've typed something in wrong.  It saves me a lot of time
  1432. fixing silly typing errors.  Sometimes I wish THINK C had the same thing, of
  1433. course with the option to turn it off (as THINK Pascal has).
  1434.  
  1435. Jim
  1436.  
  1437. winter@ai.rl.af.mil
  1438. wintermyrej@lonex.rl.af.mil
  1439. 
  1440. 
  1441. Path: ucivax!gateway
  1442. From: wwedel@uswest.com (Wally Wedel)
  1443. Subject: Re: compiler bugs and testing (was re: fix ... )
  1444. X-Sender: wwedel@vangogh
  1445. Message-ID: <9312101649.AB23144@vangogh.advtech.uswest.com>
  1446. Content-Type: text/plain; charset="us-ascii"
  1447. Mime-Version: 1.0
  1448. Newsgroups: fa.think-c
  1449. Lines: 37
  1450. Date: 10 Dec 93 16:49:18 GMT
  1451.  
  1452.  
  1453. >regarding new compiler releases and bugs, I would be *very* interested to
  1454. >know which if any C & C++ compiler testing suites were used prior to
  1455. >shipping. Perhaps the evolving nature of C++ has made this difficult in
  1456. >comparison to the ANSI C compiler, but I would consider it totally
  1457. >negligent for any significant compiler company to not use at least one of
  1458. >these testing suites. I gather they're not cheap (five-dollar-digits)
  1459. >though.
  1460. >    Mind you if it was my company that supplied the C++ suite used by
  1461. >Symantec, I'm not sure I'd want the company name mentioned in Symantec ads:
  1462. >
  1463. > "And it doesn't stop with our code quality and reliabilty!!
  1464. >  Symantec C++ is ROBUST and STANDARD!! It passes all phases of the
  1465. >  BitWiddle C++ Compiler Conformance & Torture Tests - no other
  1466. >  Macintosh C++ compiler can say that!!"
  1467. >
  1468.  
  1469. Within the past month or so, there was a fairly long thread on this topic
  1470. in comp.lang.c++. It followed the release of the GNU test suite. The
  1471. consensus agreed with my personal experience that passing a test suite is
  1472. not a reliable indicator of how a language system will work in the "real
  1473. world". Too often a vendor concentrates on passing the test suite and
  1474. misses critical problems not covered in the test suite. All of this, of
  1475. course, begs the issue of errors in the test suite too!
  1476.  
  1477. I personally think that a solid well-run beta test is a better indicator of
  1478. product success. I sometimes have the feeling that that's what we're
  1479. conducting with Symantec C++ right now.
  1480.  
  1481.  
  1482. Wally Wedel
  1483. U S WEST Communications
  1484. 4001 Discovery Drive, Suite 370
  1485. Boulder, CO 80303-7813
  1486. Internet: wwedel@uswest.com  AppleLink: D5100   Voice: 303-541-6052
  1487.  
  1488.  
  1489. 
  1490. 
  1491. Path: ucivax!gateway
  1492. From: gregf@vulture.sps.mot.com (Greg Ferguson)
  1493. Subject: Re: Competition between mac compilers.
  1494. X-Sender: gregf@vulture
  1495. Message-ID: <9312101722.AA12114@vulture.>
  1496. Content-Type: text/plain; charset="us-ascii"
  1497. Mime-Version: 1.0
  1498. Newsgroups: fa.think-c
  1499. Lines: 41
  1500. Date: 10 Dec 93 17:22:30 GMT
  1501.  
  1502. At  9:26 PM 12/9/93 +0000, JOYCES@acm.org wrote:
  1503. >reguarding a statement that dos machines have more competition between compiler
  1504. >manufacturers than the mac market does, it appears that in the near future
  1505. >that may be changing a little bit.  I found an article in macweek about a
  1506. >month ago which mentioned that metroworks C/C++ is going to have a compiler
  1507. >check flag to turn mac and powerPC binary compilation on and off.  The same
  1508. >compiler would use one set of source code and compile a program for either
  1509. >the mac, the powerPC, or (if I understood correctly) both at once (fat
  1510. >binaries).
  1511. >The article went on to mention that the author thought it was both faster
  1512. >and easier to use than its competitor.  Seeing how it bills itself as
  1513. >a native c++ compiler for the mac I can only think of one competitor.
  1514. >        I am anxiously waiting to see what happens, how easy it really
  1515. >is (or isn't), and if they have a competitive upgrade offer.
  1516.  
  1517. Yes, I saw notes of the compiler to-be. I'm very interested in it and will
  1518. search for it when I hit MacWorld (or the Developer's conference). If it
  1519. looks better (i.e. more full featured), then I just might abandon my SC++
  1520. for MWC++(?). From what I've read, Metroworks has some pretty good
  1521. expertise in the compiler market - but I don't have first hand experience
  1522. with their products.
  1523.  
  1524. Greg
  1525.  
  1526.  
  1527. --
  1528. Greg Ferguson                   email:  rtmd30@email.sps.mot.com
  1529. Programmer/Engineer             voice:  602.952.3623
  1530. World Marketing
  1531. Motorola, SPS
  1532.  
  1533. *****************************************************************
  1534. In a classic case of one thing leading to another, seven men aged
  1535. eighteen to twenty-nine received jail sentences of three to four years in
  1536. Kingston-on-Thames, England, in 1979 after a fight that started when one
  1537. of the men threw a french fry at another while they stood waiting for a
  1538. train.
  1539.         - Weird news #616
  1540. *****************************************************************
  1541.  
  1542.  
  1543. 
  1544. 
  1545. Path: ucivax!gateway
  1546. From: jvp@tools1.ee.iastate.edu (Jim Van Peursem)
  1547. Subject: Re: Got a list of bugs in TC6?
  1548. Message-ID: <9312101755.AA08356@tools1.ee.iastate.edu>
  1549. In-Reply-To: Your message of "09 Dec 1993 22:42:25 GMT."
  1550.              <199312092242.AA16540@aerospace.aero.org>
  1551. Newsgroups: fa.think-c
  1552. Lines: 13
  1553. Date: 10 Dec 93 17:51:14 GMT
  1554.  
  1555.  
  1556. >Subject:  Got a list of bugs in TC6?
  1557. >While we are on the subject of bugs in Think C, does anyone have a
  1558. >comprehensive list of the current bugs in Think C 6?
  1559.  
  1560.   The list from Symantec is public and is available from sumex, etc.
  1561.  
  1562. +---------------------------------------------------------------+
  1563. | Jim Van Peursem - Ph.D. Student - Ham Radio -> KE0PH          |
  1564. | Department of Electrical Engineering and Computer Engineering |
  1565. | Iowa State University - Ames, IA 50011                        |
  1566. | internet - jvp@iastate.edu  -or-  jvp@cpre1.ee.iastate.edu    |
  1567. +---------------------------------------------------------------+
  1568. 
  1569. 
  1570. Path: ucivax!gateway
  1571. From: tempel@monmouth-etdl1.army.mil (George Tempel)
  1572. Subject: c++ libs available
  1573. Message-ID: <01H6BHEH4ECY000ESD@MONMOUTH-ETDL1.ARMY.MIL>
  1574. Content-transfer-encoding: 7BIT
  1575. Newsgroups: fa.think-c
  1576. Lines: 12
  1577. Date: 10 Dec 93 20:01:54 GMT
  1578.  
  1579.                       c++ libs available
  1580. Thanks to those who tried to help me find some
  1581. available C++ libraries.
  1582.  
  1583. The most interesting batch of stuff was found via Mosaic:
  1584. http://info.desy.de/user/projects/C++.html
  1585.  
  1586. check in there! Too much for me to detail.
  1587.  
  1588. george tempel
  1589.  
  1590.  
  1591. 
  1592. 
  1593. Path: ucivax!gateway
  1594. From: gurgle@netcom.com (Pete Gontier)
  1595. Subject: Re: reporting syntax errors
  1596. Message-ID: <199312102003.MAA05691@mail.netcom.com>
  1597. In-Reply-To: <199312101421.GAA16520@mail.netcom.com> from "Rich Siegel" at Dec 10, 93 02:21:05 pm
  1598. X-Mailer: ELM [version 2.4 PL21]
  1599. Content-Transfer-Encoding: 7bit
  1600. Content-Type: text/plain; charset=US-ASCII
  1601. Content-Length: 1389
  1602. MIME-Version: 1.0
  1603. Newsgroups: fa.think-c
  1604. Lines: 36
  1605. Date: 10 Dec 93 20:03:24 GMT
  1606.  
  1607. Dana wrote:
  1608.  
  1609. > > be careful what
  1610. > > you ask for, the gods will surely find a may to grant it
  1611. > > which will make you regret ever having had the nerve to
  1612. > > raise your voice.
  1613.  
  1614. Rich wrote:
  1615.  
  1616. > Indeed, and it might appear that the present Symantec C++ compiler is
  1617. > an example of this principle in action.
  1618.  
  1619. Folks, I'm sorry to do this again, but I really must take this
  1620. opportunity to say "I told you so..." once more.
  1621.  
  1622. Remember when Symantec was posting things on the net asking what we
  1623. wanted from the next release of their compiler, and I was the
  1624. crusader who wanted them to fix the linker and ignore C++?  99% of
  1625. you laughed and called me unrealistic, that C++ would be so much more
  1626. of a productivity enhancement...
  1627.  
  1628. I was also the one to be posting that THINK C 5 would be the last
  1629. usable version because the company had lost Kahl and acqired Zortech.
  1630. And wasn't I right about that, too? (Please, THINK C 6 is not a new
  1631. version. And it has more bugs anyway.)
  1632.  
  1633. Symantec should hire me as their in-house curmudgeon. I'd take the
  1634. job if they gave me project veto power. I'd be their short-term
  1635. thinking's worst nightmare. The stock price would plunge for six
  1636. months. Dozens of suits with no creativity would lose their Lexi.
  1637. After six months the company'd start shipping great products...
  1638.  
  1639. Ah, we all need to fantasize sometimes...
  1640.  
  1641. --
  1642.  Pete Gontier // EC Technology // gurgle@netcom.com
  1643. 
  1644. 
  1645. Path: ucivax!gateway
  1646. From: jeffc@cc.snow.edu ("Jeffrey K. Carney")
  1647. Subject: GetFInfo Directory troubles
  1648. Message-ID: <9312101323.aa19251@q2.ics.uci.edu>
  1649. Content-Type: text/plain; charset="us-ascii"
  1650. Mime-Version: 1.0
  1651. Newsgroups: fa.think-c
  1652. Lines: 22
  1653. Date: 10 Dec 93 21:23:28 GMT
  1654.  
  1655. I'm pleading again!
  1656.  
  1657. Whether I use FSpGetFIno, HGetFInfo, or PBHGetFInfo, I get the expected
  1658. results when the object in question is a file; but when it's a directory,
  1659. all I get is an fnf error.  Why this should be, since I get its data from
  1660. CustomGetFile, I don't know.  The thing is there; then it's not there.
  1661.  
  1662. Does anyone have a solution?  Please contact me even if you're just
  1663. stumped.  This is really bumming me out.
  1664. TIA
  1665.  
  1666. +=================================================================+
  1667. |                           Jeff Carney                           |
  1668. |                          Snow  College                          |
  1669. |                        Ephraim, UT 84627                        |
  1670. |                        jeffc@cc.snow.edu                        |
  1671. |                                                                 |
  1672. |"Everything that deceives appears to cast a spell upon the mind."|
  1673. |                              Plato                              |
  1674. +=================================================================+
  1675.  
  1676.  
  1677. 
  1678. 
  1679. Path: ucivax!gateway
  1680. From: gurgle@netcom.com (Pete Gontier)
  1681. Subject: Re: GetFInfo Directory troubles
  1682. Message-ID: <199312102313.PAA27535@mail.netcom.com>
  1683. In-Reply-To: <9312101323.aa19251@q2.ics.uci.edu> from "Jeffrey K. Carney" at Dec 10, 93 09:23:28 pm
  1684. X-Mailer: ELM [version 2.4 PL21]
  1685. Content-Transfer-Encoding: 7bit
  1686. Content-Type: text/plain; charset=US-ASCII
  1687. Content-Length: 448
  1688. MIME-Version: 1.0
  1689. Newsgroups: fa.think-c
  1690. Lines: 12
  1691. Date: 10 Dec 93 23:13:34 GMT
  1692.  
  1693. > Whether I use FSpGetFIno, HGetFInfo, or PBHGetFInfo, I get the expected
  1694. > results when the object in question is a file; but when it's a directory,
  1695. > all I get is an fnf error.
  1696.  
  1697. Note the capital 'F' in all the calls you have tried. Those calls
  1698. work for files, not directories. PBGetCatInfo isn't entirely
  1699. obsolete. :-)
  1700.  
  1701. --
  1702.  Pete Gontier // EC Technology // gurgle@netcom.com
  1703.  
  1704.  Symantec C++ a "Bjarne Burner"? Yeah, I'd be pretty burned up, too!
  1705. 
  1706. 
  1707. Path: ucivax!gateway
  1708. From: jeffc@cc.snow.edu ("Jeffrey K. Carney")
  1709. Subject: SUMMARY: GetFInfo Directory Troubles
  1710. Message-ID: <9312101626.aa01662@q2.ics.uci.edu>
  1711. Content-Type: text/plain; charset="us-ascii"
  1712. Mime-Version: 1.0
  1713. Newsgroups: fa.think-c
  1714. Lines: 25
  1715. Date: 11 Dec 93 00:26:23 GMT
  1716.  
  1717. Thanks to all who helped.  Yes, PBGetCatInfo seems to solve the troubles.
  1718. And to all those who thought I was a twerp for even trying the other
  1719. routines, let me quote from the New IM:
  1720.  
  1721. "You can use the FSpGetFInfo function to obtain the Finder information
  1722. about a file or directory."  (2-160)
  1723.  
  1724. Well, as many of you know, this does not work for directories after all.
  1725. What you get instead is error -43 (fnf).  PBGetCatInfo, on the other hand,
  1726. does the trick for both files and directories, as does its mate,
  1727. PBSetCatInfo.
  1728.  
  1729. And if any of you didn't know this already, I hope you benefit from all this.
  1730.  
  1731. +=================================================================+
  1732. |                           Jeff Carney                           |
  1733. |                          Snow  College                          |
  1734. |                        Ephraim, UT 84627                        |
  1735. |                        jeffc@cc.snow.edu                        |
  1736. |                                                                 |
  1737. |"Everything that deceives appears to cast a spell upon the mind."|
  1738. |                              Plato                              |
  1739. +=================================================================+
  1740.  
  1741.  
  1742. 
  1743. 
  1744. Path: ucivax!gateway
  1745. From: davewinter@aol.com
  1746. Subject: Re: UNSubscribe
  1747. Errors-To: <davewinter@aol.com>
  1748. Message-ID: <9312110718.tn61075@aol.com>
  1749. X-Mailer: America Online Mailer
  1750. Newsgroups: fa.think-c
  1751. Reply-To: davewinter@aol.com
  1752. Lines: 1
  1753. Date: 11 Dec 93 12:19:08 GMT
  1754.  
  1755. Please UNsubscribe me. Thanks you
  1756. 
  1757. 
  1758. Path: ucivax!gateway
  1759. From: CSRAO00@ukcc.uky.edu
  1760. Subject: unsubscribe
  1761. Message-ID: <9312111102.aa02377@q2.ics.uci.edu>
  1762. Newsgroups: fa.think-c
  1763. Lines: 1
  1764. Date: 11 Dec 93 19:02:45 GMT
  1765.  
  1766. unsubscribe think-c
  1767. 
  1768. 
  1769. Path: ucivax!gateway
  1770. From: TPZ4@vm.cnuce.cnr.it (Rodolfo Cardarelli)
  1771. Subject: Merry Xmas + FORTRAN question
  1772. Message-ID: <9312130056.aa11126@q2.ics.uci.edu>
  1773. Newsgroups: fa.think-c
  1774. Lines: 9
  1775. Date: 13 Dec 93 08:56:25 GMT
  1776.  
  1777. I have been using FORTRAN 77 on several platforms for years, now, and I'd
  1778. like to port code and techniques that I know on the MAC. Could you tell me if t
  1779. here's a FORTRAN compiler that I can use in conjunction with TC6? I don't need
  1780. (and actually I don't really want...) a compiler that has glue to the Toolbox,
  1781. because I believe that C is much more suitable for GUIs; I'd be happy with a si
  1782. mple, straightforward F77 whose objects are callable from TC6 main routines.
  1783. This is my wish for Xmas|||
  1784. Merry Xmas to you all.
  1785. Rodolfo
  1786. 
  1787. 
  1788. Path: ucivax!gateway
  1789. From: d89-tho@nada.kth.se
  1790. Subject: Communicating with an External Device through the printer port
  1791. Message-ID: <9312131412.AA15621@dront.nada.kth.se>
  1792. Newsgroups: fa.think-c
  1793. Lines: 14
  1794. Date: 13 Dec 93 14:12:55 GMT
  1795.  
  1796.  
  1797. Id like to communicate with an external device with the printer port on my mac.
  1798. The external device has a standard RS232 connection and I have the cables and
  1799. hardware. Software is the problem. Does anyone have any advice on how I can
  1800. go about producing the software? i.e., which manager should be used, what
  1801. problems might occur and how to avoid them, how does one control the printer
  1802. port or any other RS232-compatible port?
  1803.  
  1804. I have worked with ThinkC before, but never to control any external device.
  1805.  
  1806. -Taquin
  1807.  
  1808. PS: Excuse the multiple copies of this mail in usenet. I wrote articles there
  1809. before I realised that this is a mailing group.
  1810. 
  1811. 
  1812. Path: ucivax!gateway
  1813. From: jimlynch@netcom.com (Jim Lynch)
  1814. Subject: Re: reporting syntax errors
  1815. Message-ID: <199312131420.GAA11204@mail.netcom.com>
  1816. Newsgroups: fa.think-c
  1817. Lines: 50
  1818. Date: 13 Dec 93 14:20:33 GMT
  1819.  
  1820. >Dana wrote:
  1821. >
  1822. >> > be careful what
  1823. >> > you ask for, the gods will surely find a may to grant it
  1824. >> > which will make you regret ever having had the nerve to
  1825. >> > raise your voice.
  1826. >
  1827. >Rich wrote:
  1828. >
  1829. >> Indeed, and it might appear that the present Symantec C++ compiler is
  1830. >> an example of this principle in action.
  1831. >
  1832. >Folks, I'm sorry to do this again, but I really must take this
  1833. >opportunity to say "I told you so..." once more.
  1834. >
  1835. >Remember when Symantec was posting things on the net asking what we
  1836. >wanted from the next release of their compiler, and I was the
  1837. >crusader who wanted them to fix the linker and ignore C++?  99% of
  1838. >you laughed and called me unrealistic, that C++ would be so much more
  1839. >of a productivity enhancement...
  1840. >
  1841. >I was also the one to be posting that THINK C 5 would be the last
  1842. >usable version because the company had lost Kahl and acqired Zortech.
  1843. >And wasn't I right about that, too? (Please, THINK C 6 is not a new
  1844. >version. And it has more bugs anyway.)
  1845. >
  1846. >Symantec should hire me as their in-house curmudgeon. I'd take the
  1847. >job if they gave me project veto power. I'd be their short-term
  1848. >thinking's worst nightmare. The stock price would plunge for six
  1849. >months. Dozens of suits with no creativity would lose their Lexi.
  1850. >After six months the company'd start shipping great products...
  1851. >
  1852. >Ah, we all need to fantasize sometimes...
  1853. >
  1854. >--
  1855. > Pete Gontier // EC Technology // gurgle@netcom.com
  1856.  
  1857. Pete, put your stock prices where your mouth is. Start your own macintosh
  1858. compiler vending company. If you think you know the right thing to do, then
  1859. by all possible means, do it.
  1860.  
  1861. Creativity? Not (much of) a flame here, but the creativity goes into the
  1862. user interface. Compilers have pretty much been carved into standard fare
  1863. for the past 25 years. First use that standard to create a CORRECT
  1864. compiler. Only then should creativity in code generation be applied to get
  1865. faster and/or smaller code. But I digress and lighten up: I agree with you
  1866. that creativity should be applied to the PRODUCT, not their own FINANCE.
  1867.  
  1868. -Jim
  1869.  
  1870. 
  1871. 
  1872. Path: ucivax!gateway
  1873. From: nagel@rdatasys.com ("Mark D. Nagel")
  1874. Subject: ADMIN: semi-periodic reminder about requests...
  1875. Message-ID: <28728.755799477@rdatasys>
  1876. Newsgroups: fa.think-c
  1877. Reply-To: think-c-request@ics.uci.edu
  1878. Organization: Relational Data Systems, Irvine, CA
  1879. Lines: 32
  1880. Date: 13 Dec 93 16:22:41 GMT
  1881. Phone: (714) 263-3899
  1882.  
  1883. Just a little reminder to everyone:
  1884.  
  1885.     If your message will be worded like:
  1886.  
  1887.         "Please unsubscribe me."
  1888.  
  1889.     or like:
  1890.  
  1891.         "Please change my address."
  1892.  
  1893.     or any other similar _administrative_ request, please,
  1894.     please, PLEASE send your message to:
  1895.  
  1896.  
  1897.         ---> think-c-request@ics.uci.edu <---
  1898.              ^^^^^^^^^^^^^^^
  1899.  
  1900.  
  1901.     If you send the message to the actual list address, then
  1902.     over 500 readers will receive it, possibly even including
  1903.     myself.  I make it a policy to completely ignore any such
  1904.     request I see on the list, so doing so is entirely useless
  1905.     (other than generating these reminders).
  1906.  
  1907.     Also, all administrative requests are processed manually at
  1908.     this time, so it may take a day or two, sometimes even
  1909.     three, for me to respond.  Please don't mistake this delay
  1910.     for being ignored.
  1911.  
  1912. Happy Holidays.
  1913.  
  1914. Mark
  1915. 
  1916. 
  1917. Path: ucivax!gateway
  1918. From: potts@oit.itd.umich.edu (Paul Potts)
  1919. Subject: Re: fix the bugs first (was reporting syntax errors)
  1920. Message-ID: <9312131629.AA21177@oit.itd.umich.edu>
  1921. Newsgroups: fa.think-c
  1922. Lines: 32
  1923. Date: 13 Dec 93 16:32:47 GMT
  1924.  
  1925. >  My comment was based on the fact that developers are very dissappointed
  1926. >with the number of bugs in the compiler. It would be suicide to leave these
  1927. >unfixed and release a new version. Sure there are going to be bugs in every
  1928. >compiler, from release to resease. But they simply cannot (or should not if
  1929. >they have any brains in management) leave the product as buggy as it is.
  1930.  
  1931. Agreed, but unfortunately it is often better to leave known bugs in a
  1932. piece of software than, by trying to fix them, create unknown bugs. This
  1933. is expecially difficult in compilers where there is so much context-sensitivity
  1934. and a bug may manifest itself under only a few obscure circumstances.
  1935.  
  1936. One of the things I haven't seen mentioned is that good error-reporting
  1937. in a c++ compiler is a very hard problem; C++ requires so much state
  1938. to parse properly that generally when something fails, all that is known
  1939. is that some particular path through the parse tree failed, and backing
  1940. up enough is a hard problem. In other words, the compiler may have to
  1941. maintain as much state to report an error correctly as it does to compile
  1942. correctly. This would certainly slow things down. Otherwise there is the
  1943. common problem on reporting an error in the wrong place (where the actual
  1944. error might have happened many lines ago). There's been a lot of discussion
  1945. in the interviews in C++ Report about the difficulty of compiling C++ now.
  1946.  
  1947. I guess I'm trying to say that there are very sharp people working on this;
  1948. C++ certainly deserves some criticism and errors should be pointed out, but
  1949. these are hard problems to solve and it doesn't really help to point out
  1950. obvious solutions; if they were obvious, they would be implemented by now.
  1951. -Paul-
  1952.  
  1953.  
  1954.  
  1955. Internet: potts@umich.edu       NewtonMail: potts@online.apple.com
  1956.  
  1957. 
  1958. 
  1959. Path: ucivax!gateway
  1960. From: msattler@netcom.com (Michael Sattler)
  1961. Subject: Re: unsubscribe
  1962. Message-ID: <199312131651.IAA01333@mail.netcom.com>
  1963. Content-Type: text/plain; charset="us-ascii"
  1964. Mime-Version: 1.0
  1965. Newsgroups: fa.think-c
  1966. Lines: 14
  1967. Date: 13 Dec 93 16:51:48 GMT
  1968.  
  1969. At  7:02 PM 12/11/93 +0000, CSRAO00@ukcc.uky.edu wrote:
  1970. >unsubscribe think-c
  1971.  
  1972. try sending to think-c-request
  1973.  
  1974.  
  1975. -----------------------------------------------------------------------------
  1976. Michael S. Sattler         msattler@netcom.com        +1 (415) 621-2903
  1977. Digital Jungle Software    Encrypt now; ask me how.   (finger for PGP key)
  1978.  
  1979.                All that is required for evil to triumph is
  1980.                 for {wo}men of good will to do nothing.
  1981.  
  1982.  
  1983. 
  1984. 
  1985. Path: ucivax!gateway
  1986. From: jvp@tools1.ee.iastate.edu (Jim Van Peursem)
  1987. Subject: Re: Communicating with an External Device through the printer port
  1988. Message-ID: <9312131730.AA08905@tools1.ee.iastate.edu>
  1989. In-Reply-To: Your message of "13 Dec 1993 14:12:55 GMT."
  1990.              <9312131412.AA15621@dront.nada.kth.se>
  1991. Newsgroups: fa.think-c
  1992. Lines: 16
  1993. Date: 13 Dec 93 17:26:23 GMT
  1994.  
  1995.  
  1996. >Id like to communicate with an external device with the printer port on my mac.
  1997. >The external device has a standard RS232 connection and I have the cables and
  1998. >hardware. Software is the problem. Does anyone have any advice on how I can
  1999. >go about producing the software? i.e., which manager should be used, what
  2000. >problems might occur and how to avoid them, how does one control the printer
  2001. >port or any other RS232-compatible port?
  2002.  
  2003.   How about reading about the Serial Driver in Inside Macintosh?
  2004.  
  2005. +---------------------------------------------------------------+
  2006. | Jim Van Peursem - Ph.D. Student - Ham Radio -> KE0PH          |
  2007. | Department of Electrical Engineering and Computer Engineering |
  2008. | Iowa State University - Ames, IA 50011                        |
  2009. | internet - jvp@iastate.edu  -or-  jvp@cpre1.ee.iastate.edu    |
  2010. +---------------------------------------------------------------+
  2011. 
  2012. 
  2013. Path: ucivax!gateway
  2014. From: G.Randall-MSCCG93@computer-science.birmingham.ac.uk
  2015. Subject: unsubscribe
  2016. Via: uk.ac.birmingham.computer-science; Mon, 13 Dec 1993 17:14:32 +0000
  2017. Message-ID: <17323.9312131714@mungo.cs.bham.ac.uk>
  2018. Newsgroups: fa.think-c
  2019. Lines: 1
  2020. Date: 13 Dec 93 17:47:56 GMT
  2021.  
  2022. Please unsubscribe me now, thanx.
  2023. 
  2024. 
  2025. Path: ucivax!gateway
  2026. From: BIESECKER@cidss.af.mil (BIESECKER)
  2027. Subject: RE: unsubscribe
  2028. Message-ID: <9312131031.aa23236@q2.ics.uci.edu>
  2029. Newsgroups: fa.think-c
  2030. Lines: 9
  2031. Date: 13 Dec 93 18:31:40 GMT
  2032.  
  2033. AAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!
  2034. _______________________________________________________________________________
  2035. From: G.Randall-MSCCG93@computer-science.birmingham.ac.uk on Mon, Dec 13, 1993
  2036. 08:18
  2037. Subject: unsubscribe
  2038. To: think-c@ics.uci.edu
  2039.  
  2040. Please unsubscribe me now, thanx.
  2041.  
  2042. 
  2043. 
  2044. Path: ucivax!gateway
  2045. From: gurgle@netcom.com (Pete Gontier)
  2046. Subject: Re: reporting syntax errors
  2047. Message-ID: <199312131844.KAA15251@mail.netcom.com>
  2048. In-Reply-To: <199312131420.GAA11204@mail.netcom.com> from "Jim Lynch" at Dec 13, 93 02:20:33 pm
  2049. X-Mailer: ELM [version 2.4 PL21]
  2050. Content-Transfer-Encoding: 7bit
  2051. Content-Type: text/plain; charset=US-ASCII
  2052. Content-Length: 1178
  2053. MIME-Version: 1.0
  2054. Newsgroups: fa.think-c
  2055. Lines: 27
  2056. Date: 13 Dec 93 19:00:55 GMT
  2057.  
  2058. > Pete, put your stock prices where your mouth is. Start your own
  2059. > macintosh compiler vending company. If you think you know the right
  2060. > thing to do, then by all possible means, do it.
  2061.  
  2062. This, as you know, is an unrealistic response. Symantec is using
  2063. money gathered in other markets to buy up inferior products targetted
  2064. at markets it does not understand and failing to clean them up before
  2065. ship. This has very little to do with whatever capital I might have
  2066. to start my own compiler vendor.
  2067.  
  2068. If I had money, this is what I'd do: buy up some former THINK
  2069. engineers.  And whaddya know, there's a company that's done that...
  2070. so I need not bother.
  2071.  
  2072. > Creativity? Not (much of) a flame here, but the creativity goes into
  2073. > the user interface. Compilers have pretty much been carved into
  2074. > standard fare for the past 25 years. First use that standard to
  2075. > create a CORRECT compiler. Only then should creativity in code
  2076. > generation be applied to get faster and/or smaller code.
  2077.  
  2078. This is the old view of software engineering. Yourdon would not be
  2079. pleased.
  2080.  
  2081. --
  2082.  Pete Gontier // EC Technology // gurgle@netcom.com
  2083.  
  2084.  Symantec C++ a "Bjarne Burner"? Yeah, I'd be pretty burned up, too!
  2085. 
  2086. 
  2087. Path: ucivax!gateway
  2088. From: rsg@camtwh.eric.on.ca (Reuben Gellman)
  2089. Subject: strtod problem
  2090. Message-ID: <93Dec13.154704edt.24859@camtwh.eric.on.ca>
  2091. X-Mailer: ELM [version 2.4 PL22]
  2092. Content-Transfer-Encoding: 7bit
  2093. Content-Type: text/plain; charset=US-ASCII
  2094. Content-Length: 262
  2095. MIME-Version: 1.0
  2096. Newsgroups: fa.think-c
  2097. Lines: 8
  2098. Date: 13 Dec 93 20:38:23 GMT
  2099.  
  2100. Someone recently mentioned that the lib func "strtod" is broken in
  2101. TC6. Is this also true for TC5? How does the problem show up? Is the
  2102. same true of strtok? I ask because I have some bizarre bugs which may
  2103. be related to these.
  2104. Thx
  2105. Reuben Gellman
  2106. rsg@eric.on.ca
  2107.  
  2108. 
  2109. 
  2110. Path: ucivax!gateway
  2111. From: KMILLER@vax.rhodes.edu ("Kenneth F. Miller")
  2112. Subject: How do you unsubscribe from this list?  Thanks.
  2113. Message-ID: <931213163244.24a15@VAX.RHODES.EDU>
  2114. Newsgroups: fa.think-c
  2115. Lines: 0
  2116. Date: 13 Dec 93 22:35:34 GMT
  2117.  
  2118. 
  2119. 
  2120. Path: ucivax!gateway
  2121. From: mike@lauren.millipore.com (Mike Ouradnik)
  2122. Subject: NoteAlert()
  2123. Message-ID: <QD0DCB0A@ouradnik>
  2124. Newsgroups: fa.think-c
  2125. Lines: 17
  2126. Date: 14 Dec 93 14:21:18 GMT
  2127.  
  2128. Another Question from the primer:
  2129.  
  2130. Can anyone tell me why the CautionAlert(),NoteAlert(),StopAlert() routines
  2131. would be sticking in the ICON with the ID one less than IM:ToolBox indicates?
  2132.  
  2133. That is:
  2134. CautionAlert() shows the Note ICON (1),
  2135. NoteAlert()    shows the Stop ICON (0),
  2136. StopAlert()    shows nothing (-1?).
  2137.  
  2138. There are no ICON resources in my file and even when I create ICONs with IDs
  2139. 0, 1, and 2 the wrong ones get put up.
  2140.  
  2141. Thanks
  2142.  
  2143. p.s. running TC5, I'll check it without any extensions tonight.
  2144.  
  2145. 
  2146. 
  2147. Path: ucivax!gateway
  2148. From: dmaclach@ra.uvic.ca (Dave MacLachlan)
  2149. Subject: Weird & Wonderful Bus Errors with C++6.01
  2150. Message-ID: <9312141644.AA24017@ra.UVic.CA.UVic.CA>
  2151. Newsgroups: fa.think-c
  2152. Lines: 12
  2153. Date: 14 Dec 93 16:44:49 GMT
  2154.  
  2155. Has anybody been receiving weird and wonderful bus errors when copding with C++6.01? I've got programs that will comile just fine with MPW C++ (albeit slowly), but throw beautiful bus erros up on my screen with THINK...not impressed at all.
  2156. I hate to blame compilers, but after spending about 60 hours trying to track these down, I tihnk that THINK may have some serious problems. It always seems to bus error on a MOVE A0,(A0) and A0 is always some nice value like $7ffc0001....
  2157.  
  2158. Anybody?
  2159.  
  2160.  
  2161. --------------------------------------------------------------------------------
  2162. Dave MacLachlan            He hacks, he cracks and he hacky-sacks!
  2163. dmaclach@ra.uvic.ca        University Of Victoria, Victoria B.C.
  2164. NightFall Software Inc.         "Only the good die young!" - Billy Joel
  2165.  
  2166.  
  2167. 
  2168. 
  2169. Path: ucivax!gateway
  2170. From: denboer@ccu.umanitoba.ca ("David A. den Boer")
  2171. Subject: Re: Weird & Wonderful Bus Errors with C++6.01
  2172. Message-ID: <9312151449.AA21183@canopus.CC.UManitoba.CA>
  2173. Content-Type: text/plain; charset="us-ascii"
  2174. Mime-Version: 1.0
  2175. Newsgroups: fa.think-c
  2176. Lines: 19
  2177. Date: 15 Dec 93 14:50:07 GMT
  2178.  
  2179. >Has anybody been receiving weird and wonderful bus errors when copding with
  2180. >C++6.01? I've got programs that will comile just fine with MPW C++ (albeit
  2181. >slowly), but throw beautiful bus erros up on my screen with THINK...not
  2182. >impressed at all.
  2183.  
  2184. Same type of errors (intermittently though), but what I am finding is that I
  2185. will occasionally get segment loader errors when using a function like strcmp
  2186. or strlen at one moment, and if I leave it alone for a while, I no longer get
  2187. the error.  It's happened many times in the last few weeks.
  2188.  
  2189. Time for a look at Metrowerks compiler! ($399 gets you C, C++, and Pascal that
  2190. will compile on a Mac or PowerPC, and can do fat binaries!)
  2191.  
  2192.  
  2193. David A. denBoer
  2194. University of Manitoba Computer Services
  2195. denboer@cc.umanitoba.ca
  2196.  
  2197.  
  2198. 
  2199. 
  2200. Path: ucivax!gateway
  2201. From: not-for-mail@dapsun.lif.icnet.uk (Systems Manager)
  2202. Subject: hello
  2203. Message-ID: <2en8rq$12j@dapsun.lif.icnet.uk>
  2204. Newsgroups: fa.think-c
  2205. Organization: us
  2206. Lines: 1
  2207. Date: 15 Dec 93 15:01:35 GMT
  2208.  
  2209. Hi there.
  2210. 
  2211. 
  2212. Path: ucivax!gateway
  2213. From: not-for-mail@dapsun.lif.icnet.uk
  2214. Subject: test(2)
  2215. Message-ID: <2en8ub$12p@dapsun.lif.icnet.uk>
  2216. Newsgroups: fa.think-c
  2217. Organization: Imperial Cancer Research Fund
  2218. Lines: 1
  2219. Date: 15 Dec 93 15:02:23 GMT
  2220.  
  2221. Hi there
  2222. 
  2223. 
  2224. Path: ucivax!gateway
  2225. From: not-for-mail@dapsun.lif.icnet.uk
  2226. Subject: test (3)
  2227. Message-ID: <2en95t$170@dapsun.lif.icnet.uk>
  2228. Newsgroups: fa.think-c
  2229. Organization: ICRF Gateway
  2230. Lines: 1
  2231. Date: 15 Dec 93 15:06:58 GMT
  2232.  
  2233. testing.....
  2234. 
  2235. 
  2236. Path: ucivax!gateway
  2237. From: denboer@ccu.umanitoba.ca ("David A. den Boer")
  2238. Subject: Metrowerks Code Warrior
  2239. Message-ID: <9312151924.AA10493@canopus.CC.UManitoba.CA>
  2240. Content-Type: text/plain; charset="us-ascii"
  2241. Mime-Version: 1.0
  2242. Newsgroups: fa.think-c
  2243. Lines: 26
  2244. Date: 15 Dec 93 19:25:09 GMT
  2245.  
  2246. I have been asked for this information by a few, and rather than be deluged with
  2247. requests, here is some infor for all to peruse.
  2248.  
  2249. Metrowerks Code Warrior
  2250. - Can code in Pascal, C or C++
  2251. - compile for 680x0 or PowerPC Macs
  2252. - fastest compilation times (16 hrs with Risc SDK from Apple vs 11.5
  2253. minutes with code warrior
  2254. - still in beta, but company will sell, and free upgrades you later
  2255. - three different packages : MacOnly, PPC only, and Both $199, $299, $399
  2256. I think these prices are Canadian, and may not accurately reflect what it could
  2257. cost you.  No guarantees.
  2258.  
  2259. Metrowerks Inc.
  2260. 1500 du College
  2261. Suite 300
  2262. St. Laurent, Quebec
  2263. H4L 5O6, CANADA
  2264. (514) 747-5999
  2265.  
  2266.  
  2267. --
  2268. David A. denBoer                                             Computer Services
  2269. denboer@cc.umanitoba.ca                                 University of Manitoba
  2270.  
  2271.  
  2272. 
  2273. 
  2274. Path: ucivax!gateway
  2275. From: jim@fpr.com ("James E. O'Dell")
  2276. Subject: Re:[2] Weird & Wonderful Bus Errors with C++6.01
  2277. Message-ID: <9312160719.AA27804@uu.psi.com>
  2278. X-Mailer: Mac/gnuucp Mail Reader v6.12
  2279. Newsgroups: fa.think-c
  2280. Reply-To: jim@fpr.com
  2281. Organization: Fort Pond Research
  2282. Lines: 10
  2283. Date: 16 Dec 93 07:48:30 GMT
  2284.  
  2285. .....
  2286.  
  2287. >Time for a look at Metrowerks compiler! ($399 gets you C, C++, and Pascal
  2288. that
  2289. >will compile on a Mac or PowerPC, and can do fat binaries!)
  2290.  
  2291. Hmmm, anybody know if Metrowerks offers a sidegrade to THINK users?
  2292. This might be the time for them to offer one.
  2293.  
  2294. Jim
  2295. 
  2296. 
  2297. Path: ucivax!gateway
  2298. From: TPZ4@vm.cnuce.cnr.it (Rodolfo Cardarelli)
  2299. Subject: Compilers war
  2300. Message-ID: <9312160504.aa17803@q2.ics.uci.edu>
  2301. Newsgroups: fa.think-c
  2302. Lines: 6
  2303. Date: 16 Dec 93 13:04:45 GMT
  2304.  
  2305. A metrowerk competitive upgrade for TC6 users would be very well accepted, I
  2306. guess. But what about compatibility with TCL, or with code written in TC?
  2307. Without that, the upgrade is not worth.
  2308.  
  2309.  
  2310. Rodolfo
  2311. 
  2312. 
  2313. Path: ucivax!gateway
  2314. From: willus@ilm.pfc.mit.edu (William L Menninger)
  2315. Subject: Directory searching functions wanted'
  2316. Message-ID: <9312161602.AA19602@ilm.pfc.mit.edu>
  2317. Newsgroups: fa.think-c
  2318. Lines: 16
  2319. Date: 16 Dec 93 16:03:36 GMT
  2320.  
  2321. I'd like to do a couple (hopefully) simple operations in Think C. I have
  2322. a lot of experience with MS-DOS, AmigaDOS, and Unix, but not very much
  2323. with Think C or Macintosh programming.  I'd like to have a function much
  2324. like Borland's findfirst()/findnext() combo that returns, one by one (or
  2325. in some sort of linked list), the names of all of the files in a given
  2326. folder.  Also, I'd like a function that will return stats about a file,
  2327. such as last modified date, etc.  Preferrably, each of these functions
  2328. would take simple C-string file/folder names as arguments, e.g.
  2329. "HD:Personal Folder:Frank:Data".  Can someone give me some
  2330. simple/concise examples of how to write such functions?
  2331.  
  2332. Reply to:  willus@ilm.pfc.mit.edu  (I am not on the Think C mailing list)
  2333.  
  2334. -Will Menninger
  2335. graduate student
  2336.  
  2337. 
  2338. 
  2339. Path: ucivax!gateway
  2340. From: jvp@tools1.ee.iastate.edu (Jim Van Peursem)
  2341. Subject: Re: Compilers war
  2342. Message-ID: <9312161630.AA00302@tools1.ee.iastate.edu>
  2343. In-Reply-To: Your message of "16 Dec 1993 13:04:45 GMT."
  2344.              <9312160504.aa17803@q2.ics.uci.edu>
  2345. Newsgroups: fa.think-c
  2346. Lines: 26
  2347. Date: 16 Dec 93 16:25:56 GMT
  2348.  
  2349.  
  2350. >A metrowerk competitive upgrade for TC6 users would be very well accepted, I
  2351. >guess. But what about compatibility with TCL, or with code written in TC?
  2352. >Without that, the upgrade is not worth.
  2353.  
  2354.   I disagree. Many of us are sick of the way Symantec has handled it's
  2355. compilers since they bought Think. If a side-grade option was available,
  2356. I'd probably buy it today. But otherwise, I'm going to save my money and
  2357. see what my peers think of it before I sink my cash into another lemon.
  2358.  
  2359.   As for TCL compatibility, I have my doubts. TCL assumes some features
  2360. of TC that may not be present in CW (handle based objects, etc). They do
  2361. ship their own class library though, and all I've heard about it is that
  2362. it is "interesting". Wait and see I guess.
  2363.  
  2364.   I would assume that most TC code should compile fine on CW though.
  2365.  
  2366.   Disclaimer: This is just what I've heard on the net. I haven't seen
  2367. the product myself, so I don't know for sure.
  2368.  
  2369. +---------------------------------------------------------------+
  2370. | Jim Van Peursem - Ph.D. Student - Ham Radio -> KE0PH          |
  2371. | Department of Electrical Engineering and Computer Engineering |
  2372. | Iowa State University - Ames, IA 50011                        |
  2373. | internet - jvp@iastate.edu  -or-  jvp@cpre1.ee.iastate.edu    |
  2374. +---------------------------------------------------------------+
  2375. 
  2376. 
  2377. Path: ucivax!gateway
  2378. From: de19@umail.umd.edu (Dana S Emery)
  2379. Subject: Re: 2] Weird & Wonderful Bus Errors with C++6.01
  2380. Message-ID: <Mailstrom.1.03.63065.9528.de19@umail.umd.edu>
  2381. In-Reply-To: Your message <9312160719.AA27804@uu.psi.com> of 16 Dec 93
  2382.  07:48:30 GMT
  2383. Content-Type: TEXT/plain; charset=US-ASCII
  2384. Newsgroups: fa.think-c
  2385. Lines: 14
  2386. Date: 16 Dec 93 16:26:36 GMT
  2387.  
  2388. >   Hmmm, anybody know if Metrowerks offers a sidegrade to
  2389. >   THINK users? This might be the time for them to offer
  2390. >   one.
  2391.  
  2392. My schools bookstore is hot to carry them, provided an edu
  2393. price were available, M would be well advised to consider
  2394. that early, teachers make course decisions quite far in
  2395. advance, and bookstores like to plan their purchases early
  2396. enough to ensure stock will be on hand for the course.
  2397.  
  2398. Does M have an email address?
  2399. --
  2400. dana s emery <de19@Umail.umd.edu>
  2401.  
  2402. 
  2403. 
  2404. Path: ucivax!gateway
  2405. From: siegel@netcom.com (Rich Siegel)
  2406. Subject: Re: Compilers war
  2407. Message-ID: <199312161730.JAA27574@mail.netcom.com>
  2408. In-Reply-To: <9312161630.AA00302@tools1.ee.iastate.edu> from "Jim Van Peursem" at Dec 16, 93 04:25:56 pm
  2409. X-Mailer: ELM [version 2.4 PL21]
  2410. Content-Transfer-Encoding: 7bit
  2411. Content-Type: text/plain; charset=US-ASCII
  2412. Content-Length: 1558
  2413. MIME-Version: 1.0
  2414. Newsgroups: fa.think-c
  2415. Lines: 34
  2416. Date: 16 Dec 93 17:30:41 GMT
  2417.  
  2418. >
  2419. > >A metrowerk competitive upgrade for TC6 users would be very well accepted, I
  2420. > >guess. But what about compatibility with TCL, or with code written in TC?
  2421. > >Without that, the upgrade is not worth.
  2422. >
  2423. >   I disagree. Many of us are sick of the way Symantec has handled it's
  2424. > compilers since they bought Think. If a side-grade option was available,
  2425. > I'd probably buy it today. But otherwise, I'm going to save my money and
  2426. > see what my peers think of it before I sink my cash into another lemon.
  2427. >
  2428. >   As for TCL compatibility, I have my doubts. TCL assumes some features
  2429. > of TC that may not be present in CW (handle based objects, etc). They do
  2430. > ship their own class library though, and all I've heard about it is that
  2431. > it is "interesting". Wait and see I guess.
  2432. >
  2433. >   I would assume that most TC code should compile fine on CW though.
  2434.  
  2435. Seconded, seconded, and seconded. TCL compatability is not a big deal,
  2436. because the installed TCL base is not that large, Code Warrior includes
  2437. its own class library, and when the pointer-based TCL becomes available,
  2438. there's an outside change that it'll work with Code Warrior.
  2439.  
  2440. Currently extant THINK C code works fine, assuming you write it
  2441. portably. Code Warrior provides an inline assembler, but the syntax
  2442. model is different (generally for the better). I've had minimal
  2443. problems porting various pieces of THINK C code, with zero to minimal
  2444. change.
  2445.  
  2446. I don't know Metrowerks' policy regarding competitive upgrades and/or
  2447. educational pricing. I have placed inquiries and will report as soon
  2448. as I know.
  2449.  
  2450. R.
  2451.  
  2452. 
  2453. 
  2454. Path: ucivax!gateway
  2455. From: potts@oit.itd.umich.edu (Paul Potts)
  2456. Subject: Re: Compilers war
  2457. Message-ID: <9312161816.AA00787@oit.itd.umich.edu>
  2458. Newsgroups: fa.think-c
  2459. Lines: 15
  2460. Date: 16 Dec 93 18:19:32 GMT
  2461.  
  2462. Actually I'm also all in favor of "sidegrade" arrangments. Arrangments
  2463. like this in the PC universe allowed me to buy Borland C++ 3.1 originally,
  2464. then get a sideways upgrade to Visual C++ for cheap, so I could work with
  2465. both and compare/contrast. Symantec has a similar arrangement for a "sidegrade"
  2466. to the Symantec C++ package. Plus, of course, you can get inexpensive upgrades
  2467. to go to Borland 4.0, etc.
  2468.  
  2469. This is known as "leveraging off your initial investment"   : )
  2470. The only downside is that the docs for all these packages take up yards and
  2471. yards of shelf space and you will need an awfully big hard disk to keep
  2472. all the packages installed.
  2473.  
  2474. -Paul-
  2475. Internet: potts@umich.edu       NewtonMail: potts@online.apple.com
  2476.  
  2477. 
  2478. 
  2479. Path: ucivax!gateway
  2480. From: dnebing@andy.bgsu.edu (Dave Nebinger)
  2481. Subject: Re: Compilers war
  2482. Message-ID: <9312161839.AA11586@andy.bgsu.edu>
  2483. Content-Type: text/plain; charset="us-ascii"
  2484. Mime-Version: 1.0
  2485. Newsgroups: fa.think-c
  2486. Lines: 15
  2487. Date: 16 Dec 93 18:39:29 GMT
  2488.  
  2489. >The only downside is that the docs for all these packages take up yards and
  2490. >yards of shelf space and you will need an awfully big hard disk to keep
  2491. >all the packages installed.
  2492.  
  2493.   If CodeWarrior is all that they say it is, it would be worth those minor
  2494. problems.  ;-)
  2495.  
  2496.  
  2497. ============================================================
  2498. Dave Nebinger                    dnebing@andy.bgsu.edu
  2499. Network Manager, Biology Dept.   dnebing@opie.bgsu.edu
  2500. Bowling Green State University   dnebing@bgsuopie (bitnet)
  2501. Bowling Green, OH 43403          #include <std_disclaimer.h>
  2502.  
  2503.  
  2504. 
  2505. 
  2506. Path: ucivax!gateway
  2507. From: dent@perth.dialix.oz.au (Andrew Dent)
  2508. Subject: Re: Compilers war
  2509. Message-ID: <199312162327.HAA11709@perth.DIALix.oz.au>
  2510. X-Mailer: SCO System V Mail (version 3.2)
  2511. Newsgroups: fa.think-c
  2512. Lines: 15
  2513. Date: 16 Dec 93 23:28:29 GMT
  2514.  
  2515. I'
  2516. I've heard one rumour that Greg Dow (author of TCL) joined Metrowerks
  2517. and so I'd expect a lot of similarity in the class libraries.
  2518.  
  2519. There's not a lot to do to remove handle-based dependencies anyway, unless
  2520. you've written grotty code that treats your objects as handle-based
  2521. structs and dereferences them as such.
  2522.  
  2523. The instantiation by name etc. is all buried in TCL classes and I'd expect
  2524. some comparable mechanism, if they have resource-driven views.
  2525.  
  2526. Andy Dent (A.D. Software - Mac & VAX programming)
  2527. 94 Bermuda Dve, BALLAJURA  Western Australia  6066
  2528. Phone/Fax: 09 249 2719 (local)  +619 249 2719 (International)
  2529.        Internet: dent@DIALix.oz.au    Compuserve: 100033,3241
  2530. 
  2531. 
  2532. Path: ucivax!gateway
  2533. From: siegel@netcom.com (Rich Siegel)
  2534. Subject: Re: Compilers war
  2535. Message-ID: <199312170346.TAA08981@mail.netcom.com>
  2536. In-Reply-To: <199312170025.QAA19357@mail.netcom.com> from "Daniel Sears" at Dec 16, 93 04:25:19 pm
  2537. X-Mailer: ELM [version 2.4 PL21]
  2538. Content-Transfer-Encoding: 7bit
  2539. Content-Type: text/plain; charset=US-ASCII
  2540. Content-Length: 354
  2541. MIME-Version: 1.0
  2542. Newsgroups: fa.think-c
  2543. Lines: 14
  2544. Date: 17 Dec 93 03:45:54 GMT
  2545.  
  2546.  
  2547. > You said that it has an inline assembler.  Greg said
  2548. > that it was for functions only not for blocks ala ThinkC.
  2549.  
  2550. That's correct.
  2551.  
  2552. > (It had one feature that vi had years ago which you
  2553. > might add to BBedit: visual parenthesis matching.)
  2554.  
  2555. Are you referring to the feature where it flashes the matching
  2556. paren/brace/bracket? BBEdit does that now.
  2557.  
  2558. R.
  2559.  
  2560. 
  2561. 
  2562. Path: ucivax!gateway
  2563. From: siegel@netcom.com (Rich Siegel)
  2564. Subject: Re: Compilers war (fwd)
  2565. Message-ID: <199312171622.IAA03257@mail.netcom.com>
  2566. X-Mailer: ELM [version 2.4 PL21]
  2567. Content-Transfer-Encoding: 7bit
  2568. Content-Type: text/plain; charset=US-ASCII
  2569. Content-Length: 1308
  2570. MIME-Version: 1.0
  2571. Newsgroups: fa.think-c
  2572. Lines: 52
  2573. Date: 17 Dec 93 16:21:52 GMT
  2574.  
  2575. Forwarded message:
  2576. From siegel Fri Dec 17 08:21:38 1993
  2577. Subject: Re: Compilers war
  2578. To: JOYCES@ACM.ORG
  2579. Date: Fri, 17 Dec 1993 08:21:38 -0800 (PST)
  2580. In-Reply-To: <01H6KXNGLJ02004NUB@PASCAL.ACM.ORG> from "JOYCES@ACM.ORG" at Dec 17, 93 09:31:09 am
  2581. X-Mailer: ELM [version 2.4 PL21]
  2582. MIME-Version: 1.0
  2583. Content-Type: text/plain; charset=US-ASCII
  2584. Content-Transfer-Encoding: 7bit
  2585. Content-Length: 911
  2586.  
  2587.  
  2588. > >> You said that it has an inline assembler.  Greg said
  2589. > >> that it was for functions only not for blocks ala ThinkC.
  2590. > >
  2591. > >That's correct.
  2592. >
  2593. > I understand ThinkC's inline assembler and have used it, but I don't
  2594. > understand the statement that metroworks assembler is for functions
  2595. > only.  I can't seem to picture how that would (or wouldn't) work.
  2596. > Can you explain the difference between the usage of each?
  2597. >     I know thinkC's code would be something like:
  2598. > asm    {
  2599. >     move.l a0, a1;
  2600. >     }
  2601. >
  2602. > How would metroworks be different?
  2603.  
  2604. In THINK C, a function might look like this:
  2605.  
  2606. void foo(short c)
  2607. {
  2608.     asm
  2609.     {
  2610.         move.w c, d3 ; do some stuff
  2611.     }
  2612. }
  2613.  
  2614. Such functions
  2615. In Metrowerks C/68K, functions are declared 'asm', as in
  2616.  
  2617. asm void foo(short c)
  2618. {
  2619.     move.w    c, d3
  2620. }
  2621.  
  2622. Functions declared 'asm' cannot contain C code or local declarations,
  2623. but can have arguments (and can reference those arguments symbolically).
  2624.  
  2625. R.
  2626.  
  2627. 
  2628. 
  2629. Path: ucivax!gateway
  2630. From: fredm@media.mit.edu ("Fred G. Martin")
  2631. Subject: problem getting valid FSSpec from OpenDocument event
  2632. Message-ID: <9312171811.AA04269@media.mit.edu>
  2633. Newsgroups: fa.think-c
  2634. Lines: 71
  2635. X-Mts: smtp
  2636. Date: 17 Dec 93 18:11:36 GMT
  2637.  
  2638. Hello all,
  2639.  
  2640. I'm having trouble getting valid data in the FSSpec returned by the
  2641. AEGetNthPtr call in my Open Document event handler.  I get a valid
  2642. filename in the FSSpec, but the volume number comes up -1 every time.
  2643.  
  2644. Except.  The weird thing is if I put the file to be opened on a floppy
  2645. disk, and then double-click on it, the vRefNum is correct and my
  2646. application can open it properly.  Hmmm, I have no idea what's going
  2647. on.
  2648.  
  2649. Here's the code I'm using (Think C 5.0.2).  If anyone can shed any
  2650. light on this situation, I would be most appreciative.
  2651.  
  2652.     -Fred
  2653.  
  2654. pascal OSErr DoOpenDoc( AppleEvent theAE, AppleEvent reply, long refCon)
  2655. {
  2656.     FSSpec    myFSS;
  2657.     SFReply     mySFReply;
  2658.     AEDescList  docList;
  2659.     OSErr       myErr;
  2660.     long        index, itemsInList;
  2661.     Size        actualSize;
  2662.     AEKeyword   keywd;
  2663.     DescType    returnedType;
  2664.     int         i;
  2665.  
  2666.     /* get the direct parameter---a descriptor list---and put it into docList */
  2667.     myErr= AEGetParamDesc(&theAE, keyDirectObject, typeAEList, &docList);
  2668.  
  2669.     if (myErr != noErr) {
  2670.         ParamText("\pError calling AEGetParamDesc in DoOpenDoc","","","");
  2671.         NoteAlert(kTellUserAlert, 0L);
  2672.         return;
  2673.     }
  2674.  
  2675.     /* check for missing required parameters */
  2676.     /* not implemented */
  2677.  
  2678.     /* count the number of descriptor records in the list */
  2679.     myErr= AECountItems(&docList, &itemsInList);
  2680.  
  2681.     /* now get each descriptor record from the list, coerce the returned */
  2682.     /* data to an FSSpec record, and open the associated file */
  2683.  
  2684.     /* well, we'll just do it for the first and ignore multiple open-files. */
  2685.     myErr= AEGetNthPtr( &docList, 1L, typeFSS, &keywd, &returnedType,
  2686.                         (Ptr)&myFSS,
  2687.                         (Size)sizeof(myFSS), &actualSize);
  2688.  
  2689.  
  2690.     if (myErr != noErr) {
  2691.         ParamText("\pError calling AEGetNthPtr in DoOpenDoc","","","");
  2692.         NoteAlert(kTellUserAlert, 0L);
  2693.         return;
  2694.     }
  2695.  
  2696.     /* open the file by passing an SFReply to DoFileDownload */
  2697.     mySFReply.vRefNum= myFSS.vRefNum;
  2698.  
  2699.     mySFReply.fName[0]= myFSS.name[0];
  2700.     for (i=1; i<= myFSS.name[0]; i++)
  2701.         mySFReply.fName[i]= myFSS.name[i];
  2702.     mySFReply.good= TRUE;
  2703.  
  2704.     DoFileDownload(mySFReply);
  2705.  
  2706. }
  2707.  
  2708.  
  2709. 
  2710. 
  2711. Path: ucivax!gateway
  2712. From: gregf@vulture.sps.mot.com (Greg Ferguson)
  2713. Subject: Re: Re:[2] Weird & Wonderful Bus Errors with C++6.01
  2714. Message-ID: <9312172107.AB03260@vulture.>
  2715. Content-Type: text/plain; charset="us-ascii"
  2716. Mime-Version: 1.0
  2717. Newsgroups: fa.think-c
  2718. Lines: 33
  2719. Date: 17 Dec 93 21:08:14 GMT
  2720.  
  2721. At  7:48 AM 12/16/93 +0000, James E. O'Dell wrote:
  2722. >.....
  2723. >
  2724. >>Time for a look at Metrowerks compiler! ($399 gets you C, C++, and Pascal
  2725. >that
  2726. >>will compile on a Mac or PowerPC, and can do fat binaries!)
  2727. >
  2728. >Hmmm, anybody know if Metrowerks offers a sidegrade to THINK users?
  2729. >This might be the time for them to offer one.
  2730.  
  2731. I agree. I haven't seen their compiler, but from what I've read it's nice.
  2732. I'm tired of having a kludged editor (running CMaster) and the external
  2733. editor mechanism seems very slow. The whole Symantec package just doesn't
  2734. seem as solid as the Borland tools I used to use.
  2735.  
  2736. Greg
  2737.  
  2738. --
  2739.  
  2740. Greg Ferguson
  2741.  
  2742. rtmd30@email.sps.mot.com
  2743. Desktop Networking Systems
  2744. World Marketing
  2745. Motorola, SPS
  2746.  
  2747.  
  2748. =============================================================
  2749.       We haven't inherited the earth from our ancestors.
  2750.         We've borrowed it from our children instead.
  2751. =============================================================
  2752.  
  2753.  
  2754. 
  2755. 
  2756. Path: ucivax!gateway
  2757. From: mike@lauren.millipore.com (Mike Ouradnik)
  2758. Subject: Re: NoteAlert()
  2759. Message-ID: <QD123C5D@ouradnik>
  2760. In-Reply-To: <9312141731.AA28415@gatekeeper.Millipore.COM>
  2761. Newsgroups: fa.think-c
  2762. Lines: 22
  2763. Date: 17 Dec 93 23:11:05 GMT
  2764.  
  2765.  
  2766.  
  2767. Thanks, Jeff C, for your response to my NoteAlert() problem.  Don't worry
  2768. about talking down, I have been doing C programming for several years but
  2769. I'm brand new to Mac stuff.  And of course 90% of programming problems are
  2770. from overlooking the most obvious...
  2771.  
  2772. I was supplying the required Alert box ID, and I did double check the system
  2773. file for the expected ICONs.
  2774.  
  2775. It appears my Talking Moose ( have you seen the Moose?) is sticking his big
  2776. nose in somewhere.  When the Moose is unloaded everything works fine.  In
  2777. case you've forgotten, I was seeing the ICON with ID# 0 (Stop ICON) when
  2778. calling NoteAlert(128,nil) even though IM clearly states I should see ICON
  2779. ID#1 (Note ICON), and CautionAlert() would show the Note ICON.
  2780.  
  2781. Any ideas out there?
  2782.  
  2783. -Mike
  2784.  
  2785.  
  2786.  
  2787. 
  2788. 
  2789. Path: ucivax!gateway
  2790. From: willus@ilm.pfc.mit.edu (William L Menninger)
  2791. Subject: Thanks!
  2792. Message-ID: <9312181401.AA07818@ilm.pfc.mit.edu>
  2793. Newsgroups: fa.think-c
  2794. Lines: 17
  2795. Date: 18 Dec 93 14:01:46 GMT
  2796.  
  2797. What a supportive group this is.  I got several replies to my request
  2798. for help with a directory parsing function, all of which are
  2799. appreciated.  Mostly, people told me to get the book Inside Mac:  Files,
  2800. which I probably won't do, since I don't plan to program on the Mac
  2801. regularly, but it's nice to know what the serious programmers use in
  2802. case I get more involved.  While I haven't implemented anything yet, I
  2803. did want to thank the following people for taking the time to give me
  2804. some advice:
  2805.  
  2806. E. Huff, T. Brown, D. Emery, and A. Wood.
  2807.  
  2808. I don't think I need any more information at the present time.  Thanks
  2809. again.
  2810.  
  2811. -Will Menninger
  2812. graduate student
  2813.  
  2814. 
  2815. 
  2816. Path: ucivax!gateway
  2817. From: willus@ilm.pfc.mit.edu (William L Menninger)
  2818. Subject: One more kudos
  2819. Message-ID: <9312181439.AA07964@ilm.pfc.mit.edu>
  2820. Newsgroups: fa.think-c
  2821. Lines: 7
  2822. Date: 18 Dec 93 14:39:20 GMT
  2823.  
  2824. Oops.  I forgot to mention one of the people who sent me a nice detailed
  2825. reply about directory searching, and he was the first to reply, too.
  2826. Oh, the utter irony of it.  Just so he doesn't feel slighted:  Thanks to
  2827. Jeffrey Carney!
  2828.  
  2829. -Will
  2830.  
  2831. 
  2832. 
  2833. Path: ucivax!gateway
  2834. From: lgsargent@aol.com
  2835. Subject: Re: Weird & Wonderful Bus Errors with C++6.01
  2836. Errors-To: <lgsargent@aol.com>
  2837. Message-ID: <9312192113.tn242944@aol.com>
  2838. X-Mailer: America Online Mailer
  2839. Newsgroups: fa.think-c
  2840. Reply-To: lgsargent@aol.com
  2841. Lines: 23
  2842. Date: 20 Dec 93 02:14:03 GMT
  2843.  
  2844. >Date:  93-12-14 11:59:28 EST
  2845. >From:  dmaclach@ra.uvic.ca
  2846. >Subj:  Weird & Wonderful Bus Errors with C++6.01
  2847. >
  2848. >Has anybody been receiving weird and wonderful bus errors
  2849. >xwhen copding with C++6.01? I've got programs that will compile
  2850. >just fine with MPW C++ (albeit slowly), but throw beautiful bus
  2851. >errors up on my screen with THINK...not impressed at all.
  2852. >I hate to blame compilers, but after spending about 60 hours
  2853. >trying to track these down, I tihnk that THINK may have some serious
  2854. >problems. It always seems to bus error on a MOVE A0,(A0) and A0 is
  2855. >always some nice value like $7ffc0001....
  2856.  
  2857. I have been having similar bus error problems, but figured it was the fact
  2858. that my INIT was doing some somewhat unnatural acts.  I don't know about
  2859. your errors, but mine seem to be sporadic and always have a large number
  2860. ($4nnnnnnn).
  2861.  
  2862. I don't think you are alone....
  2863. --------------------------------------------------------------------------
  2864. Lloyd Sargent
  2865. lgsargent@aol.com
  2866. Canna Software Development         "Ack, Ack, thpppt..." - Bill the Gates
  2867. 
  2868. 
  2869. Path: ucivax!gateway
  2870. From: bkirsch@nadc.nadc.navy.mil ("B. Kirsch")
  2871. Subject: SFGetFile FileFilterProc Question
  2872. Message-ID: <9312201549.AA02217@NADC.NADC.NAVY.MIL>
  2873. Newsgroups: fa.think-c
  2874. Lines: 69
  2875. Date: 20 Dec 93 16:04:17 GMT
  2876.  
  2877. Hello,
  2878.  
  2879. I want to create a file filter for SFGetFile that will not only filter files
  2880. with particular file types, but also open the file to read the header to see
  2881. if it is in a particular format.  If it is not that format, remove it from
  2882. list.  It seems that I am not getting passed the correct ioVRefNum from the
  2883. fileParam structure.  The ioNamePtr is correct (as I see it in the debugger
  2884. window as the list is indexed), but I always get a -43 (File Not Found error)
  2885. when I do an FSOpen.  What am I doing wrong.
  2886.  
  2887. Thanks in advance.
  2888.  
  2889. Barry Kirsch
  2890. bkirsch@nadc.navy.mil
  2891.  
  2892. /*------------Code Segments Follow------------*/
  2893. void DoSFGetFile()
  2894. {
  2895.     Point    where;
  2896.     SFTypeList    typeList;
  2897.     Str255    theStr;
  2898.     SFReply    theReply;
  2899.  
  2900.     where.h=20;  where.v=90;    /* SF dialog window position */
  2901.  
  2902.     SFGetFile(where,    /* put topLeft corner of dialog box here */
  2903.     0,        /* prompt always 0 on SFGetFile() */
  2904.     (FileFilterProcPtr)FileTypeFilter,    /* address of custom filter */
  2905.     -1,        /* -1 means look for any type and ignore typeList */
  2906.     typeList,    /* start of list of file types */
  2907.     0,        /* use standard dialog handler */
  2908.     &theReply);    /* put results here */
  2909.  
  2910.     if ( theReply.good == TRUE ) { //... user selected "Open" ...
  2911.     }
  2912.     else  { /* ... user canceled the open operation ... */
  2913.     }
  2914. }
  2915.  
  2916. pascal Boolean FileTypeFilter(fileParam *thePBptr )
  2917. {
  2918. #define BUFSIZE 100
  2919.     short         FileRefNum;
  2920.     short         Err;
  2921.     unsigned     char    *bufPtr;
  2922.     long        BytesToRead=BUFSIZE;
  2923.  
  2924.  
  2925.     /*Remove APPL and TEXT types from list*/
  2926.     if (( thePBptr->ioFlFndrInfo.fdType == 'APPL' )||
  2927.             ( thePBptr->ioFlFndrInfo.fdType == 'TEXT' )){
  2928.         return( TRUE );    // Don't show 'APPL' or 'TEXT' files,
  2929.     }
  2930.  
  2931.     /*Open file to see if it is of the correct format to display in list*/
  2932.     /*THE FOLLOWING RETURNS -43 ERROR, WHY???*/
  2933.     Err = FSOpen(&thePBptr->ioNamePtr[0], thePBptr->ioVRefNum,&FileRefNum);
  2934.     if(Err==noErr){
  2935.         bufPtr = (unsigned char *)malloc(BytesToRead);
  2936.         Err=FSRead(FileRefNum,&BytesToRead, (Ptr)bufPtr);
  2937.         if(Err==noErr){
  2938.             return(ParseBuffer(bufPtr));/*FALSE if format is valid,
  2939.                          TRUE if format is not correct*/
  2940.         }
  2941.         FSClose(FileRefNum);
  2942.         free(bufPtr);
  2943.     }
  2944. }
  2945.  
  2946. 
  2947. 
  2948. Path: ucivax!gateway
  2949. From: dnebing@andy.bgsu.edu (Dave Nebinger)
  2950. Subject: Here we go again...
  2951. Message-ID: <9312210303.AA08783@andy.bgsu.edu>
  2952. Newsgroups: fa.think-c
  2953. Lines: 12
  2954. Date: 21 Dec 93 03:03:32 GMT
  2955.  
  2956.   I am sure this has been around before.  How do I get the vrefnum and
  2957. dirid for my application? (In order to open files found there without
  2958. hard coding the path)
  2959.  
  2960.   Dave.
  2961.  
  2962. ============================================================
  2963. Dave Nebinger                    dnebing@andy.bgsu.edu
  2964. Network Manager, Biology Dept.   dnebing@opie.bgsu.edu
  2965. Bowling Green State University   dnebing@bgsuopie (bitnet)
  2966. Bowling Green, OH 43403          #include <std_disclaimer.h>
  2967.  
  2968. 
  2969. 
  2970. Path: ucivax!gateway
  2971. From: resnick@cogsci.uiuc.edu (Pete Resnick)
  2972. Subject: Re: Here we go again...
  2973. X-Sender: resnick@tarski.cogsci.uiuc.edu
  2974. Message-ID: <199312210723.AA04315@tarski.cogsci.uiuc.edu>
  2975. Content-Type: text/plain; charset="us-ascii"
  2976. Mime-Version: 1.0
  2977. Newsgroups: fa.think-c
  2978. Lines: 53
  2979. Date: 21 Dec 93 07:24:00 GMT
  2980.  
  2981. At  3:03 AM 12/21/93 +0000, Dave Nebinger wrote:
  2982. >  I am sure this has been around before.  How do I get the vrefnum and
  2983. >dirid for my application? (In order to open files found there without
  2984. >hard coding the path)
  2985.  
  2986. Someone should archive this someplace. If you are using System 7, you can
  2987. just call GetProcessInformation() with kCurrentProcess. Otherwise, you can
  2988. pass the result of CurResFile(), assuming you haven't opened up any other
  2989. resource files, to the following function:
  2990.  
  2991. /* A Pete Resnick production ... */
  2992. OSErr RefNumToFSSpec(short refNum, FSSpecPtr fileSpec)
  2993. {
  2994.         OSErr errCode;
  2995.         long attribute;
  2996.         FCBPBRec fcb;
  2997.         Str63 tempString;
  2998.  
  2999.         fcb.ioCompletion = nil;
  3000.         fcb.ioNamePtr = tempString;
  3001.         fcb.ioVRefNum = 0;
  3002.         fcb.ioRefNum = refNum;
  3003.         fcb.ioFCBIndx = 0L;
  3004.         if((errCode = PBGetFCBInfoSync(&fcb)) == noErr) {
  3005.                 if(TrapAvailable(_Gestalt) &&
  3006.                    Gestalt(gestaltFSAttr, &attribute) == noErr &&
  3007.                    (attribute & (1 << gestaltHasFSSpecCalls)) != 0L) {
  3008.                         errCode = FSMakeFSSpec(fcb.ioFCBVRefNum,
  3009.                                                fcb.ioFCBParID,
  3010.                                                tempString,
  3011.                                                fileSpec);
  3012.                 } else {
  3013.                         fileSpec->vRefNum = fcb.ioFCBVRefNum;
  3014.                         fileSpec->parID = fcb.ioFCBParID;
  3015.                         BlockMove(tempString,
  3016.                                   fileSpec->name,
  3017.                                   tempString[0]  +  1);
  3018.                 }
  3019.         }
  3020.         return(errCode);
  3021. }
  3022.  
  3023. Just get the dirID out of the FSSpec.
  3024.  
  3025. pr
  3026.  
  3027. --
  3028. Pete Resnick        (...so what is a mojo, and why would one be rising?)
  3029. Graduate assistant - Philosophy Department, Gregory Hall, UIUC
  3030. System manager - Cognitive Science Group, Beckman Institute, UIUC
  3031. Internet: resnick@cogsci.uiuc.edu
  3032.  
  3033.  
  3034. 
  3035. 
  3036. Path: ucivax!gateway
  3037. From: gurgle@netcom.com (Pete Gontier)
  3038. Subject: Re: Here we go again...
  3039. Message-ID: <199312211742.JAA02109@mail.netcom.com>
  3040. In-Reply-To: <199312210723.AA04315@tarski.cogsci.uiuc.edu> from "Pete Resnick" at Dec 21, 93 07:24:00 am
  3041. X-Mailer: ELM [version 2.4 PL23]
  3042. Content-Transfer-Encoding: 7bit
  3043. Content-Type: text/plain; charset=US-ASCII
  3044. Content-Length: 434
  3045. MIME-Version: 1.0
  3046. Newsgroups: fa.think-c
  3047. Lines: 13
  3048. Date: 21 Dec 93 17:42:41 GMT
  3049.  
  3050. > At  3:03 AM 12/21/93 +0000, Dave Nebinger wrote:
  3051. > >  I am sure this has been around before.  How do I get the vrefnum and
  3052. > >dirid for my application? (In order to open files found there without
  3053. > >hard coding the path)
  3054. >
  3055. > Someone should archive this someplace. [valid techniques deleted]
  3056.  
  3057. GetAppParms
  3058.  
  3059. --
  3060.  Pete Gontier // EC Technology // gurgle@netcom.com
  3061.  
  3062.  Symantec C++ a "Bjarne Burner"? Yeah, I'd be pretty burned up, too!
  3063. 
  3064. 
  3065. Path: ucivax!gateway
  3066. From: resnick@cogsci.uiuc.edu (Pete Resnick)
  3067. Subject: Re: Here we go again...
  3068. X-Sender: resnick@tarski.cogsci.uiuc.edu
  3069. Message-ID: <199312211751.AA04722@tarski.cogsci.uiuc.edu>
  3070. Content-Type: text/plain; charset="us-ascii"
  3071. Mime-Version: 1.0
  3072. Newsgroups: fa.think-c
  3073. Lines: 24
  3074. Date: 21 Dec 93 17:51:30 GMT
  3075.  
  3076. At  3:03 AM 12/21/93 +0000, Dave Nebinger wrote:
  3077. >  I am sure this has been around before.  How do I get the vrefnum and
  3078. >dirid for my application? (In order to open files found there without
  3079. >hard coding the path)
  3080.  
  3081. At  9:42 AM 12/21/93 -0800, Pete Gontier wrote:
  3082. >GetAppParms
  3083.  
  3084. To clarify, I take it Peter means that you should pass the returned refNum
  3085. in GetAppParms to the RefNumToFSSpec routine I sent in; GetAppParms itself
  3086. won't get you any closer to the dirID without doing something else.
  3087.  
  3088. I do like this better than depending on CurResFile() being correct. Good
  3089. recommendation!
  3090.  
  3091. pr
  3092.  
  3093. --
  3094. Pete Resnick        (...so what is a mojo, and why would one be rising?)
  3095. Graduate assistant - Philosophy Department, Gregory Hall, UIUC
  3096. System manager - Cognitive Science Group, Beckman Institute, UIUC
  3097. Internet: resnick@cogsci.uiuc.edu
  3098.  
  3099.  
  3100. 
  3101. 
  3102. Path: ucivax!gateway
  3103. From: gurgle@netcom.com (Pete Gontier)
  3104. Subject: Re: Here we go again...
  3105. Message-ID: <199312211806.KAA05634@mail.netcom.com>
  3106. In-Reply-To: <199312211747.AA04712@tarski.cogsci.uiuc.edu> from "Pete Resnick" at Dec 21, 93 11:48:01 am
  3107. X-Mailer: ELM [version 2.4 PL23]
  3108. Content-Transfer-Encoding: 7bit
  3109. Content-Type: text/plain; charset=US-ASCII
  3110. Content-Length: 2385
  3111. MIME-Version: 1.0
  3112. Newsgroups: fa.think-c
  3113. Lines: 50
  3114. Date: 21 Dec 93 18:06:34 GMT
  3115.  
  3116. Yes, this topic need to go in the FAQ, if it is not already there.
  3117.  
  3118. > At  3:03 AM 12/21/93 +0000, Dave Nebinger wrote:
  3119. > >  I am sure this has been around before.  How do I get the vrefnum and
  3120. > >dirid for my application? (In order to open files found there without
  3121. > >hard coding the path)
  3122. >
  3123. > At  9:42 AM 12/21/93 -0800, Pete Gontier wrote:
  3124. > >GetAppParms
  3125.  
  3126. Resnick wrote:
  3127.  
  3128. > To clarify, I take it Peter means that you should pass the returned
  3129. > refNum in GetAppParms to the RefNumToFSSpec routine I sent in;
  3130. > GetAppParms itself won't get you any closer to the dirID without
  3131. > doing something else.
  3132.  
  3133. You can go two ways after calling GetAppParms. You can call the
  3134. Resnick Productions routine, which uses the resource file reference
  3135. number to find out where the application resource file lives. Or you
  3136. can use the working directory reference number supplied by
  3137. GetAppParms.  You can use the working directory directly in most file
  3138. manager calls (although working directories are officially obsolete
  3139. and you should probably not write a lot of code that relies on your
  3140. ability to create and pass around working directories, even though
  3141. the system continues to create them in several contexts). Or you can
  3142. call GetWDInfo to get the real vRefNum and dirID from the working
  3143. directory. I like the latter method because it requires less
  3144. parameter blocking and does not rely on the (currently true) fact
  3145. that resource file reference numbers relate to "real" file reference
  3146. numbers (FCB offsets). I would not worry about this last bit except
  3147. that I know if you open a resource file a second time with a
  3148. different access specifier (read-only, for example) you get a
  3149. resource file reference number which is *not* a "real" file reference
  3150. number (FCB offset). This tells me that the fact that the first
  3151. resource file reference number corresponds to a "real" file reference
  3152. number (FCB offset) may only be a coincidence and subject to change
  3153. in the future.  (I can't recall seeing that fact documented anywhere,
  3154. and believe me, I have been prowling the documentation for years.)
  3155.  
  3156. > I do like this better than depending on CurResFile() being correct.
  3157. > Good recommendation!
  3158.  
  3159. Other schemes recommend the use of GetVol with similar caveats as
  3160. your scheme about CurResFile.
  3161.  
  3162. --
  3163.  Pete Gontier // EC Technology // gurgle@netcom.com
  3164.  
  3165.  Symantec C++ a "Bjarne Burner"? Yeah, I'd be pretty burned up, too!
  3166. 
  3167. 
  3168. Path: ucivax!gateway
  3169. From: potts@oit.itd.umich.edu (Paul Potts)
  3170. Subject: Symantec C 6 debugging environment questions
  3171. Message-ID: <9312211859.AA07747@oit.itd.umich.edu>
  3172. Newsgroups: fa.think-c
  3173. Lines: 23
  3174. Date: 21 Dec 93 19:03:10 GMT
  3175.  
  3176. Hi all,
  3177. I know this question has been beaten to death in the past, but it is rearing
  3178. its ugly head again.
  3179.  
  3180. We've got a large server-like application that does a lot of asynchronous
  3181. serial I/O using the Comm Toolbox. We're in the final stages of debugging,
  3182. and troubled by sporadic crashes (a heap block gets written past its end
  3183. and the header of the next block demolished; as usual, trying to figure out
  3184. what did this is like trying to determine what the driver was thinking,
  3185. moments before a fatal car crash.)
  3186.  
  3187. One clue is that, when run under the Symantec C6 debugger, it seems to
  3188. never crash. Does that suggest anything to any of you? Any clues welcomed.
  3189. What are some of the differences between run-time environments that might
  3190. be helping keep the app alive under the debugger?
  3191.  
  3192. It probably should suggest something to me, but I'm not very suggestible,
  3193. obviously...
  3194.  
  3195. Thanks,
  3196. -Paul-
  3197. Internet: potts@umich.edu       NewtonMail: potts@online.apple.com
  3198.  
  3199. 
  3200. 
  3201. Path: ucivax!gateway
  3202. From: Barry_Wolman@transarc.com
  3203. Subject: Min Memory Size
  3204. Message-ID: <Yh5pAi6SMUI3MtaXBI@transarc.com>
  3205. Newsgroups: fa.think-c
  3206. Lines: 18
  3207. Date: 21 Dec 93 19:52:26 GMT
  3208.  
  3209. I have an 8MB IIci with 7.1.  My system size has crept up to about
  3210. 4MB.  The resulting 4MB isn't enough to launch both Think Project
  3211. Manager and Alpha.  I'm looking at how I can slim down my System file,
  3212. but also want to explore minimum memory sizes for TPM and Alpha.  I'll
  3213. be working on small personal programming projects, e.g. half a dozen
  3214. files of a few hundred lines.  How small can I make the TPM and Alpha
  3215. memory sizes and still have things work?  Presumably, if I cut back
  3216. too far, TPM or Alpha will complain about not being able to open a
  3217. file or TPM won't be able to do the build.
  3218.  
  3219. Thanks,
  3220. Barry
  3221.  
  3222. ----------------------------------------------------
  3223. Barry Wolman            barry@transarc.com
  3224. Transarc Corporation        412/338-4364 (voice)
  3225. 707 Grant Street        412/338-4404 (fax)
  3226. Pittsburgh, PA 15219
  3227. 
  3228. 
  3229. Path: ucivax!gateway
  3230. From: jeffc@cc.snow.edu ("Jeffrey K. Carney")
  3231. Subject: MacTech CD
  3232. Message-ID: <9312211225.aa04076@q2.ics.uci.edu>
  3233. Content-Type: text/plain; charset="us-ascii"
  3234. Mime-Version: 1.0
  3235. Newsgroups: fa.think-c
  3236. Lines: 5
  3237. Date: 21 Dec 93 20:26:03 GMT
  3238.  
  3239. Has anyone purchased MacTech Mag's CD?  Is it worth it?
  3240.  
  3241. Jeff
  3242.  
  3243.  
  3244. 
  3245. 
  3246. Path: ucivax!gateway
  3247. From: rsg@camtwh.eric.on.ca (Reuben Gellman)
  3248. Subject: structure packing
  3249. Message-ID: <93Dec21.154715edt.30984@camtwh.eric.on.ca>
  3250. X-Mailer: ELM [version 2.4 PL22]
  3251. Content-Transfer-Encoding: 7bit
  3252. Content-Type: text/plain; charset=US-ASCII
  3253. Content-Length: 444
  3254. MIME-Version: 1.0
  3255. Newsgroups: fa.think-c
  3256. Lines: 10
  3257. Date: 21 Dec 93 20:38:26 GMT
  3258.  
  3259. I need to read (on a Mac) binary files created by a Pascal prog on a DOS PC.
  3260. To read the files on a PC using a Microsoft C compiler, I have to set
  3261. #pragma pack(1) before defining the structures to be read. This apparently
  3262. arranges matters so that the structs are packed on any-byte boundaries,
  3263. rather than 2-byte or 4-byte (which is the default, I think). Is there
  3264. any way to specify structure packing with TC5?
  3265.  
  3266. Reuben Gellman
  3267. rsg@eric.on.ca
  3268.  
  3269. 
  3270. 
  3271. Path: ucivax!gateway
  3272. From: siegel@netcom.com (Rich Siegel)
  3273. Subject: Re: Min Memory Size
  3274. Message-ID: <199312212256.OAA29254@mail.netcom.com>
  3275. X-Mailer: ELM [version 2.4 PL23]
  3276. Content-Transfer-Encoding: 7bit
  3277. Content-Type: text/plain; charset=US-ASCII
  3278. Content-Length: 1608
  3279. MIME-Version: 1.0
  3280. Newsgroups: fa.think-c
  3281. Lines: 37
  3282. Date: 21 Dec 93 22:56:21 GMT
  3283.  
  3284. Forwarded message:
  3285. From siegel Tue Dec 21 14:55:57 1993
  3286. Subject: Re: Min Memory Size
  3287. To: Barry_Wolman@transarc.com
  3288. Date: Tue, 21 Dec 1993 14:55:57 -0800 (PST)
  3289. In-Reply-To: <Yh5pAi6SMUI3MtaXBI@transarc.com> from "Barry_Wolman@transarc.com" at Dec 21, 93 07:52:26 pm
  3290. X-Mailer: ELM [version 2.4 PL23]
  3291. MIME-Version: 1.0
  3292. Content-Type: text/plain; charset=US-ASCII
  3293. Content-Transfer-Encoding: 7bit
  3294. Content-Length: 1189
  3295.  
  3296.  
  3297. > I have an 8MB IIci with 7.1.  My system size has crept up to about
  3298. > 4MB.  The resulting 4MB isn't enough to launch both Think Project
  3299. > Manager and Alpha.  I'm looking at how I can slim down my System file,
  3300. > but also want to explore minimum memory sizes for TPM and Alpha.  I'll
  3301. > be working on small personal programming projects, e.g. half a dozen
  3302. > files of a few hundred lines.  How small can I make the TPM and Alpha
  3303. > memory sizes and still have things work?  Presumably, if I cut back
  3304. > too far, TPM or Alpha will complain about not being able to open a
  3305. > file or TPM won't be able to do the build.
  3306.  
  3307. I don't know if this is a viable option for you, but BBEdit 2.5 has a
  3308. smaller memory footprint than Alpha does; 512K recommended vs. 1024K
  3309. recommended. That partition doesn't have to be increased to open
  3310. additional files, since BBEdit reads text into temp memory, so if
  3311. you're running short, you just close a file or two, if necessary.
  3312. (BBEdit's minimum partition is 350K, if you're really desperate...)
  3313.  
  3314. R.
  3315.  
  3316. Rich Siegel % siegel@netcom.com    % Principal, Bare Bones Software
  3317.  
  3318. "I went and shot the maximum the game laws would allow: two game
  3319. wardens, seven hunters, and a cow."
  3320.  
  3321. 
  3322. 
  3323. Path: ucivax!gateway
  3324. From: rpa@netcom.com (Ramin Firoozye)
  3325. Subject: Re: MacTech CD
  3326. Message-ID: <199312220011.QAA11763@mail.netcom.com>
  3327. In-Reply-To: <9312211225.aa04076@q2.ics.uci.edu> from "Jeffrey K. Carney" at Dec 21, 93 08:26:03 pm
  3328. X-Mailer: ELM [version 2.4 PL23]
  3329. Content-Transfer-Encoding: 7bit
  3330. Content-Type: text/plain; charset=US-ASCII
  3331. Content-Length: 1118
  3332. MIME-Version: 1.0
  3333. Newsgroups: fa.think-c
  3334. Lines: 27
  3335. Date: 22 Dec 93 00:12:09 GMT
  3336.  
  3337. > Has anyone purchased MacTech Mag's CD?  Is it worth it?
  3338. >
  3339. > Jeff
  3340.  
  3341. I got their first release way back when. It's a nice reference although
  3342. most of the code is outdated especially in light of System 7.
  3343. It uses On-location (included with it) to index across all the MacTutor
  3344. issues. You better have a fast CD-player though otherwise it takes a *long*
  3345. time. In addition to all the MacTutor source code, there are a lot of other
  3346. goodies from DTS and (I think) some BMUG stuff. If you like programming by
  3347. example, it's a good investment. I passed on the 93 "upgrade" because the
  3348. $120+ upgrade price wasn't worth it. The upgrade included Think Reference
  3349. but I already had that. If you have Think Reference AND On-Location, you may
  3350. not appreciate the price so much.
  3351.  
  3352. Overall, I would get it if I didn't have access to the Internet or AppleLink.
  3353. You may also want to look into Walnut Creek's info-mac archives, BMUG's
  3354. PD-ROM, and Doctor Dobb's Journal's CD for some other programming material.
  3355.  
  3356. Cheers,
  3357. Ramin.
  3358.  
  3359. --
  3360. Ramin Firoozye'
  3361. rp&A Inc. - San Francisco, California
  3362. Internet: rpa@netcom.COM - CIS: 70751,252
  3363. --
  3364. 
  3365. 
  3366. Path: ucivax!gateway
  3367. From: lgsargent@aol.com
  3368. Subject: Re: structure packing
  3369. Errors-To: <lgsargent@aol.com>
  3370. Message-ID: <9312211948.tn40137@aol.com>
  3371. X-Mailer: America Online Mailer
  3372. Newsgroups: fa.think-c
  3373. Reply-To: lgsargent@aol.com
  3374. Lines: 35
  3375. Date: 22 Dec 93 00:49:45 GMT
  3376.  
  3377. >I need to read (on a Mac) binary files created by a Pascal prog on a DOS PC.
  3378. >To read the files on a PC using a Microsoft C compiler, I have to set
  3379. >#pragma pack(1) before defining the structures to be read.
  3380. >This apparently arranges matters so that the structs are packed on any-byte
  3381. >boundaries, rather than 2-byte or 4-byte (which is the default, I think). Is
  3382.  
  3383. >there any way to specify structure packing with TC5?
  3384. >
  3385. >Reuben Gellman
  3386. >rsg@eric.on.ca
  3387.  
  3388. TC6++ has the ability to set structures to one-byte boundaries (PC
  3389. programmers tend to compact their structures due to memory/compiler
  3390. limitations -- I know having been one for 12 years).  I believe that TC5 puts
  3391. everything on word boundaries so decrease access time (accessing words on odd
  3392. addresses tend to slow the 68K down).
  3393.  
  3394. Personally, for binary files, whether on the Mac or PC, I prefer to read the
  3395. data in and construct the structure, rather than attempt to overlay a
  3396. structure definition on top of data.  This gives me two things:
  3397.    1) My structure can be of any size, including items that weren't in the
  3398. original structure
  3399.    2) I don't have to worry about someone coming in later and accidently
  3400. setting the flag back to word boundaries (read: fewer maintenance headaches)
  3401.  
  3402. Although it sounds like re-inventing the wheel, it isn't.  It's more like
  3403. "just because Johnny jumped off the bridge doesn't mean you have to..."!
  3404.  
  3405. Good Luck!
  3406.  
  3407. --------------------------------------------------------------------------
  3408. Lloyd Sargent                               "You may be right, I may be
  3409. crazy...
  3410. Internet: lgsargent@aol.com          but it might just be a lunatic you're
  3411. Canna Software Development        looking for..." Billy Joel
  3412. 
  3413. 
  3414. Path: ucivax!gateway
  3415. From: jaho@secrc.abb.se (Jan Hoeglund - ABB Corp Research Sweden)
  3416. Subject: ftp-sites with Mac programming examples
  3417. Message-ID: <9312221325.AA00999@secrc.abb.se>
  3418. Newsgroups: fa.think-c
  3419. Lines: 8
  3420. Date: 22 Dec 93 13:23:44 GMT
  3421.  
  3422. I would greatly appreciate if anyone could point me to ftp sites
  3423. where I could find good Macintosh programming examples written
  3424. in C or C++. While old with the Mac I am new on Internet.
  3425.  
  3426. Thanks,
  3427. Jan Hoeglund      Email: jaho@secrc.abb.se
  3428. ABB Corp Research
  3429. Sweden
  3430. 
  3431. 
  3432. Path: ucivax!gateway
  3433. From: rsf@access.digex.net ("Russell S. Finn")
  3434. Subject: Re: structure packing
  3435. Message-ID: <199312221632.AA23814@access2.digex.net>
  3436. In-Reply-To: Your message of "22 Dec 1993 00:49:45 GMT."
  3437.              <9312211948.tn40137@aol.com>
  3438. Newsgroups: fa.think-c
  3439. Lines: 19
  3440. Date: 22 Dec 93 16:32:21 GMT
  3441.  
  3442. > TC6++ has the ability to set structures to one-byte boundaries (PC
  3443. > programmers tend to compact their structures due to memory/compiler
  3444. > limitations -- I know having been one for 12 years).  I believe that TC5 puts
  3445. > everything on word boundaries so decrease access time (accessing words on odd
  3446. > addresses tend to slow the 68K down).
  3447.  
  3448. Accessing words on odd addresses slows the 68000 *way* down -- it
  3449. causes an unaligned access exception, which brings your program to a
  3450. screeching halt.  :-)
  3451.  
  3452. Unaligned accesses are permitted on 68020/030/040's, but at a speed
  3453. penalty, as Reuben indicated.
  3454.  
  3455. Therefore the original poster should probably adopt the method of
  3456. manually "unpacking" the packed structures from disk into memory,
  3457. unless he does not need to be compatible with the 68000.
  3458.  
  3459. -- Russell Finn
  3460. rsf@access.digex.net
  3461. 
  3462. 
  3463. Path: ucivax!gateway
  3464. From: hamptn@uow.edu.au (Greg hampton)
  3465. Subject: Modem commands
  3466. Message-ID: <199312231520.CAA08977@wumpus>
  3467. Content-Transfer-Encoding: 7bit
  3468. Content-Type: text/plain; charset=US-ASCII
  3469. Content-Length: 201
  3470. MIME-Version: 1.0
  3471. Newsgroups: fa.think-c
  3472. Lines: 6
  3473. Date: 23 Dec 93 15:21:28 GMT
  3474.  
  3475.  
  3476. Hi there peoples, anyone got any code they could mail me on how to send
  3477. modem commands to my modem through C code? Like "ATDT 213 456".
  3478.  
  3479. Thankyou very much, Dan Hampton.
  3480. <hamptn@wumpus.cc.uow.edu.au>
  3481. 
  3482. 
  3483. Path: ucivax!gateway
  3484. From: C1876@umslvma.umsl.edu (Terry Koyn)
  3485. Subject: Photoshop plug-in
  3486. Message-ID: <9312241728.aa17554@q2.ics.uci.edu>
  3487. Newsgroups: fa.think-c
  3488. Lines: 27
  3489. Date: 25 Dec 93 01:28:09 GMT
  3490.  
  3491. I am wondering if anyone reading the list has experience writing
  3492. photoshop plug in modules.  I am considering adapting a THINK C 6.0
  3493. application that creates images (complete with menu bar and multiple
  3494. windows) for use as a Acquire plug-in for photoshop and I have several
  3495. questions about plug-in development:
  3496.  
  3497. 1) Must a plug-in use a modal dialog box or can it use regular
  3498. windows and allow clicking in other windows, including one of
  3499. PhotoShop's windows?
  3500.  
  3501. 2) Can a plug-in take control of the menu bar while running?  What
  3502. issues would there be in changing the menu bar and ensuring it is
  3503. returned to normal when returning to photoshop?
  3504.  
  3505. 3) Can a plug-in run its own full-blown event loop?
  3506.  
  3507. 4) What are the ramifications of using the standard memory management
  3508. routines (either directly or indirectly with a call such as NewGWorld)
  3509. to allocate and free memory in a plug-in?  How will this interact with
  3510. PhotoShop's virtual memory scheme?
  3511.  
  3512. Please send any replies both to the list and privately to
  3513. C1876@UMSLVMA.UMSL.EDU (InterNet) or C1876@UMSLVMA (BitNet).
  3514.  
  3515. Thanks in advance for any assistance and advice.
  3516.  
  3517. Terry Koyn
  3518. 
  3519. 
  3520. Path: ucivax!gateway
  3521. From: chharris@u.washington.edu (The Only Cow)
  3522. Subject: Setting the Mouse Postition
  3523. X-Sender: chharris@stein2.u.washington.edu
  3524. Message-ID: <Pine.3.89.9312301509.A7063-0100000@stein2.u.washington.edu>
  3525. Content-Type: TEXT/PLAIN; charset=US-ASCII
  3526. Mime-Version: 1.0
  3527. Newsgroups: fa.think-c
  3528. Lines: 13
  3529. Date: 30 Dec 93 23:45:41 GMT
  3530.  
  3531. Is there any 'easy' way to set the position of the mouse?  I found a
  3532. little hack to do it, but it doesn't seem like it's very safe.  Any ideas?
  3533.  
  3534. Thanks.
  3535.  
  3536. -Chris
  3537.  
  3538. ------------------------------------------------------------------------------
  3539.    "To error is human, but to really foul things up, you need a computer."
  3540.                    Send questions, comments, flames, etc. to:
  3541.                  Chris Harris / chharris@stein.u.washington.edu
  3542.                       PGP Signature availible via finger...
  3543.  
  3544. 
  3545. 
  3546. Path: ucivax!gateway
  3547. From: hamptn@uow.edu.au (Greg hampton)
  3548. Subject: sorting strings
  3549. Message-ID: <199312310335.OAA29272@wumpus>
  3550. Content-Transfer-Encoding: 7bit
  3551. Content-Type: text/plain; charset=US-ASCII
  3552. Content-Length: 282
  3553. MIME-Version: 1.0
  3554. Newsgroups: fa.think-c
  3555. Lines: 10
  3556. Date: 31 Dec 93 03:36:05 GMT
  3557.  
  3558.  
  3559. Hi. I need somehow to sort a bunch of c or p-strings alphabetically.
  3560.  
  3561. I just need the references to an array of strings in what order they should
  3562. be used for a-z sorting, or actually sorting the array would be better.
  3563.  
  3564. Hope i haven't been to unclear.
  3565.  
  3566. AtDhVaAnNkCsE, Dan Hampton.
  3567.  
  3568. 
  3569.